Uncaught TypeError: Cannot read property ‘nodeName’ of undefined
恶心的错误花了3个小时找问题,结果
使用easyui datagrid,可编辑表格,错误提示:
Uncaught TypeError: Cannot read property ‘nodeName’ of undefined
at Function.acceptData (jquery.min.js:2)
at Function.data (jquery.min.js:2)
at HTMLTableCellElement. (jquery.easyui.min.js:7992)
at Function.each (jquery.min.js:2)
at init.each (jquery.min.js:2)
at _566 (jquery.easyui.min.js:7970)
at _563 (jquery.easyui.min.js:7894)
at HTMLTableElement. (jquery.easyui.min.js:8536)
at Function.each (jquery.min.js:2)
at init.each (jquery.min.js:2)
问题解决:
因为不可编辑的单元格使用的editor:‘text’,去掉即可