js斜杠转义字符 js如何转义和反转义html特殊字符?
js如何转义和反转义html特殊字符?js中的特殊字符,加上转义符 。例如:var txt="We are the so-called "Vikings" from the north." docum
js如何转义和反转义html特殊字符?
js中的特殊字符,加上转义符 。例如:var txt="We are the so-called "Vikings" from the north." document.write(txt) 【错误】var txt="We are the so-called "Vikings" from the north." document.write(txt) 【正确】