js中多层引号嵌套的处理方法
`<form style="padding:10px;width:335px;">
<div style="padding-top:5px;width:99%;">
<input style="width:99%" class="easyui-combotree" data-options="
onSelect: function (node) {
$('[name="featureLayer"]').children('input').combobox({disabled: false});
$('[name="where"]').children('input').textbox('enable');
"/>
</div>
</form>`
如上所示,我用了四种引号,
- `` 反引号
- “” 双引号
- ‘’ 单引号
- "
四层嵌套的话就可以用这四种引号啦,就不用转义了。
当然,你也可以用转义。