设置服务超时
由于项目的需求,需要设置作为请求方的服务超时,和作为服务方的超时 Extjs默认超时时间是30s,更改默认,设置65s请求服务超时Ext.Ajax.setTimeout(65000);
Ext.onReady(function() {
document.body.oncontextmenu = function() {
return false;
}
Ext.Ajax.setTimeout(65000);
});
由于项目的需求,需要设置作为请求方的服务超时,和作为服务方的超时 Extjs默认超时时间是30s,更改默认,设置65s请求服务超时Ext.Ajax.setTimeout(65000);
Ext.onReady(function() {
document.body.oncontextmenu = function() {
return false;
}
Ext.Ajax.setTimeout(65000);
});
转载于:https://my.oschina.net/Oyiersan/blog/1845588