[英]Unable to get property 'apply' of undefined or null reference - IE11 and Chrome
我是Java和jQuery的新手, 無法解決此錯誤。
當我嘗試在IE11和chrome中調試時收到此錯誤。 最初我得到了
無法獲取未定義或空引用的屬性“調用”
在jquery.validate.min.js中找到event.handle.call
,我做了一些研究並通過更改為event.dispatch.call
進行了event.dispatch.call
。 一旦我解決了這個錯誤,便找不到任何好的解決方法。
我正在使用jQuery 1.10。*,並且想在調試IE11和Chrome時修復此錯誤。
任何建議將非常有用。 向我指出任何有用的資源或可能的修復方法。
編輯:
我在jQuery-ui-1.10.3.js的function handlerProxy中遇到此錯誤
$.each( handlers, function( event, handler ) {
function handlerProxy() {
// allow widgets to customize the disabled handling
// - disabled as an array instead of boolean
// - disabled class as method for disabling individual parts
if ( !suppressDisabledCheck &&
( instance.options.disabled === true ||
$( this ).hasClass( "ui-state-disabled" ) ) ) {
return;
}
return ( typeof handler === "string" ? instance[ handler ] : handler )
.apply( instance, arguments );
}
}
您可能使用了過時的jquery.validate版本。 獲取適用於您的jquery版本的最新版本,它應該可以工作。 這就是我解決此問題的方法。 我正在使用jquery 1.11和jquery.validate 1.10並將validate更新到1.11,它工作正常。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.