extjs aborted datastore超时

因为数据量较大,后台响应会比较慢,JsonStore调用load方法之后可能出现超时的情况,解决的办法很简单。 把创建JsonStore时的代码: 
           var myBigTimeout = 90000;        
           var store = new Ext.data.Store({
           baseParams: {sort: sort1, dir: dir1, st: st1, et: et1,week: week1,tj:tj1,fgs:fgs1,tc:tc1,sf:sf1,gsmc:gsmc1},
           proxy: new Ext.data.HttpProxy({
                   method: 'POST',
                   url: '/crm/Home/GetDbPaging',
                   timeout: myBigTimeout
               }), reader: new Ext.data.JsonReader({
                   root: 'UsersList',
                   totalProperty: 'TotalCount',
                   id: 'FCompanyAccountID',
                   fields: dffields}),remoteSort: true
           });

 

你可能感兴趣的:(url,ExtJs)