我有这样的代码(取消ajax调用):
if (requests.length) {
for (i=requests.length; i--;) {
var r = requests[i];
if (4 !== r.readyState) {
try {
r.abort();
} catch(e) {
self.error('error in aborting ajax');
}
}
}
requests = [];
// only resume if there are ajax calls
self.resume();
}
和 jshint 显示错误:
Value of 'e' may be overwritten in IE 8 and earlier.
在} catch(e) {
那个错误是什么意思?