0

使用 JavaScript,有没有办法将纯文本(带有特殊字符)转换为 JavaScript 字符串文字?

例如,有没有办法将以下文本转换为字符串文字?

"Here is some text inside quotes."Here is more text inside quotes: it's not easy to write this as a string literal, so I need to automatically convert it somehow." " 
4

0 回答 0