【发布时间】:2017-02-09 05:27:21
【问题描述】:
当我粘贴 (CTRL+V) 时,出现 jQuery 错误:TypeError: e is null
我有相当复杂的数据表解决方案,带有自定义Handsontable。它发生在特殊情况下。我不知道如何处理这个错误,stacktrace 上只有 jquery。
你对我有什么建议吗?
提前致谢。
堆栈跟踪:
n/</<()
jquery.js.xhtml:36
u()
jquery.js.xhtml:33
n/<()
jquery.js.xhtml:36
[58]</<.run()
jquery.js.xhtml:34
[25]</S.Core/this.runHooks()
jquery.js.xhtml:31
[86]</<.onDataChange/n.replace()
jquery.js.xhtml:38
[86]</<.onDataChange/<()
jquery.js.xhtml:38
u()
jquery.js.xhtml:33
[86]</<.onDataChange()
jquery.js.xhtml:38
[86]</<.enablePlugin/<()
jquery.js.xhtml:38
[56]</c.runLocalHooks/<()
jquery.js.xhtml:33
u()
jquery.js.xhtml:33
[56]</c.runLocalHooks()
jquery.js.xhtml:33
[85]</<.onChange()
jquery.js.xhtml:38
[85]</<.setObservedData/this.observer<()
jquery.js.xhtml:38
h()
jquery.js.xhtml:61
a()
jquery.js.xhtml:61
[85]</<.setObservedData()
jquery.js.xhtml:38
[86]</<.onAfterLoadData()
jquery.js.xhtml:38
[86]</<.enablePlugin/<()
jquery.js.xhtml:38
[58]</<.run()
jquery.js.xhtml:34
[25]</S.Core/this.loadData()
jquery.js.xhtml:30
afterCellChangedImpl()
jquery.js.xhtml:206
afterCellChanged()
jquery.js.xhtml:159
[58]</<.run()
jquery.js.xhtml:34
r()
jquery.js.xhtml:30
[25]</S.Core/this.setDataAtCell/<()
jquery.js.xhtml:30
r()
jquery.js.xhtml:30
n/<.checkIfQueueIsEmpty()
jquery.js.xhtml:30
o()
jquery.js.xhtml:30
[25]</S.Core/this.setDataAtCell()
jquery.js.xhtml:30
[25]</S.Core/f.populateFromArray()
jquery.js.xhtml:30
[25]</S.Core/this.populateFromArray()
jquery.js.xhtml:30
n()
jquery.js.xhtml:36
.copyPaste</r.prototype.triggerPaste/<()
【问题讨论】:
-
如果没有实际代码,stacktrace 什么也不会告诉我们?
-
对不起,现在我明白了,stacktrace中有我的方法,这是我以前没有看到的,因为它是针对jquery.js的。我注释掉了导致这种情况的行,但我在粘贴事件中仍然有非常奇怪的行为。
标签: jquery copy copy-paste paste handsontable