问题描述
我们一直通过此链接使用jQuery. http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js 进行拖放.突然,我们注意到它现在不起作用,并且我们这边也没有代码更改.我们注意到错误指向这些行,错误是TypeError:a.curCSS不是函数吗?该问题将如何解决?
We have been using Jquery from this link http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js for drag and drop. Suddenly we notice it is not working now and there is no code change done our side. We notice the error is pointing to these line and error is TypeError: a.curCSS is not a function? What will be solution to this problem?
e&&e.call(i)},g)}):this._focus.apply(this,arguments)},scrollParent:function(){var g;g=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter
推荐答案
此JavaScript错误是由jQuery和jQueryUI彼此不同步引起的.我将更新jQuery UI,而不是返回到旧版本的jQuery. jQueryUI博客中的链接讨论了对最新版本jQuery的支持.在更新jQuery UI之前,我遇到了同样的错误.
This javascript error is caused by jQuery and jQueryUI being out of sync with each other. Rather than go back to an older version of jQuery, I would update jQuery UI. This link from the jQueryUI blog talks about support for the latest version jQuery. I experienced the same error before updating jQuery UI.
这篇关于jQuery UI 1.8.13突然错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!