如下图所示,本来是键 "type" ,弹出modal之后,变成 " type",多出一个空格,因此出错,怎么回事?如何处理?
从chrome检查元素复制出来的html源码是:
<button type="button" onclick="confirmAjax("确定要修改本项吗?",'updateDictElem(51,{"type":"XJ","label":"999","value":"333","orders":"22","remarks":""})')">确定修改</button>
从chrome检查元素复制出来的html源码是("和type之间换行了):
<button class="button bMuddy sButton" onclick="updateDictElem(51,{" type":"xj","label":"999","value":"333","orders":"22","remarks":""});closemodal();"="">确认</button>
饮歌长啸
牛魔王的故事
相关分类