對象不支持“handleError”屬性或方法怎么解決?
1 回答

動漫人物
TA貢獻1815條經驗 獲得超10個贊
handlerError只在jquery-1.4.2之前的版本中存在,jquery-1.6 和1.7中都沒有這個函數了,因此在1.4.2中將這個函數復制到了form.js中
handleError: function( s, xhr, status, e ) {
// If a local callback was specified, fire it
if ( s.error ) {
s.error.call( s.context || s, xhr, status, e );
}
// Fire the global callback
if ( s.global ) {
(s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] );
}
},
添加回答
舉報
0/150
提交
取消