2011-01-17 22:56

解决ajaxpro 9.2.17.1 中 this.onTimeout is not a function 的错误

使用AjaxPro时,程序功能运行很正常,但总是会提出this.onTimeout is not a function 的脚本错误提示,

解决方法:

下载AjaxPro源码,

修改core.js 

        timeout: function() {
try {
this.duration = new Date().getTime() - this.__start;
var r = this.onTimeout(this.duration, this);
if(typeof r == "undefined" || r != false) {
this.abort();
} else {
this.timeoutTimer = setTimeout(this.timeout.bind(this),
AjaxPro.timeoutPeriod);
}
} catch(error) {
// Statements that execute in the event of an exception
} finally {
// Statements that execute afterward either way
}

AjaxPro.2.dll.zip(修改后重新生成的dll)

你可能还喜欢...

添加新评论