我们正在使用jquery 1.11.1的四个应用程序并升级到jquery 3.3.1。 对于所有超链接,单击面对“无法读取未定义的属性'ownerDocument'”。这是我将jquery UI升级到1.12.1和1.12.0的时候。但这在较低的jquery版本中可以正常工作。 可能是什么问题?请帮忙。
<a href="javascript:applyTest(0)" class="blue" id="msg_none"></a>
Stacktrace:
jquery-1.12.4.js:1474 Uncaught TypeError: Cannot read property 'ownerDocument' of undefined
at Function.Sizzle.contains (jquery-1.12.4.js:1474)
at $.(:8787/myapplication/anonymous function).(anonymous function)._mouseCapture (http://localhost:8787/resources/js/plugin/jquery-ui.js:11086:38)
at $.(:8787/myapplication/anonymous function).(anonymous function)._mouseCapture (http://localhost:8787/resources/js/plugin/jquery-ui.js:144:25)
at $.(:8787/myapplication/anonymous function).(anonymous function)._mouseDown (http://localhost:8787/resources/js/plugin/jquery-ui.js:9352:42)
at $.(:8787/myapplication/anonymous function).(anonymous function)._mouseDown (http://localhost:8787/resources/js/plugin/jquery-ui.js:144:25)
at HTMLDivElement.<anonymous> (jquery-ui.js:9307)
at HTMLDivElement.dispatch (jquery-1.12.4.js:5226)
at HTMLDivElement.elemData.handle (jquery-1.12.4.js:4878)
Sizzle.contains @ jquery-1.12.4.js:1474
_mouseCapture @ jquery-ui.js:11086
(anonymous) @ jquery-ui.js:144
_mouseDown @ jquery-ui.js:9352
(anonymous) @ jquery-ui.js:144
(anonymous) @ jquery-ui.js:9307
dispatch @ jquery-1.12.4.js:5226
elemData.handle @ jquery-1.12.4.js:4878