1. //定义数据源      
  2. var urlhttp = '连接地址';           
  3.  var itemStore = new Ext.data.JsonStore({  
  4.    url:urlhttp,  
  5.    totalProperty:'count',  
  6.    root:'members',  
  7.    auteLoad:true,  
  8.    fields:Member,             
  9.    pruneModifiedRecords:true  
  10.    });         
  11.   
  12.        
  13. //定义任务   
  14. var task = {    
  15.    run : function() {itemStore.reload({params : {start : 0,limit : 100 }})  
  16.     },      
  17.    interval : 2000, //2秒刷新一次   
  18.   
  19.    scope : this  
  20.    };  
  21.   //定时执行任务    
  22.   Ext.TaskMgr.start(task);   

相关文章:

  • 2021-10-30
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-02-08
  • 2021-12-08
猜你喜欢
  • 2021-11-19
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
相关资源
相似解决方案