正在加载中...

信息详页

返回
js中多层引号嵌套的处理方法


来源:转载 浏览量:7 次 发布日期:2024-09-17

js中多层引号嵌套的处理方法
`<form style="padding:10px;Dwidth:335px;">
<div style="padding-top:5px;Dwidth:99%;">
<input style="Dwidth:99%" class="easyui-combotree" data-options="
onSelect: function (node) {
$('[name=&quot;featureLayer&quot;]').children('input').combobox({disabled: false});
$('[name=&quot;where&quot;]').children('input').textbox('enable');
"/>
</div>
</form>`

如上所示,我用了四种引号,
1、`` 反引号
2、“” 双引号
3、‘’ 单引号
4、&quot
四层嵌套的话就可以用这四种引号啦,就不用转义了。当然,你也可以用转义。