js斜杠轉(zhuǎn)義字符 js如何轉(zhuǎn)義和反轉(zhuǎn)義html特殊字符?
js如何轉(zhuǎn)義和反轉(zhuǎn)義html特殊字符?js中的特殊字符,加上轉(zhuǎn)義符 。例如:var txt="We are the so-called "Vikings" from the north." docum
js如何轉(zhuǎn)義和反轉(zhuǎn)義html特殊字符?
js中的特殊字符,加上轉(zhuǎn)義符 。例如: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) 【正確】