使用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
}