js 字符串中包含双引号
时间: 2023-10-17 13:25:11 浏览: 73
精彩编程与编程技巧-字符串中包含双引号...
4星 · 用户满意度95%
可以使用转义字符 "\" 对双引号进行转义,例如:
```
var str = "This is a string with a \"double quote\" inside.";
console.log(str);
```
输出结果为:
```
This is a string with a "double quote" inside.
```
阅读全文