有时候,因为业务处理速度较慢或是业务处理过程比较复杂,耗时,需要对请求超时时间做出处理.
这样,就要在Ext.Ajax.request中使用timeout参数了.
文档中对timeout有这样的描述:
timeout : Number
Ext.Ajax.request({
url:url...,
params:{...},
timeout:60000,
success:function(respones,options){
}
}
);
本文链接:http://faceye.com/haipeng/article/402881e42206f7db01221184e62b0020.html
本文由haipeng于2009-06-24 17:07:18.0在http://www.faceye.com发布,转载请保留本文链接及作者信息.