延長ajax的請求超時時間(默認爲30秒)
1、Ext.data.Connection.prototype.timeout='9000';設置ajax請求時間默認30秒
2、Ext.Ajax.request({
timeout:300000,
});
一個ajax數據裝載多個store
Ext.Ajax.request({
url:'<%=WebConfig.WEB_ROOT%>/sys/listQueryDesktopMsg.jhtml',//後臺取數據的地址
success:function(response){
var responseJson = Ext.util.JSON.decode(response.responseText);
one.loadData(responseJson);//將後面(3)中的store1、store2的定義放在
two.loadData(responseJson);//Ext.Ajax.request之前
zero.loadData(responseJson);
see.loadData(responseJson);
no.loadData(responseJson);
},
failure:function(response){
}
});