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) 【正確】