Extjs定时刷新数据源

it2022-05-05  138

var itemStore = new Ext.data.JsonStore({ url:urlhttp, totalProperty:'count', root:'members', auteLoad:true, fields:Member, pruneModifiedRecords:true }); //定义任务 var task = { run : function() {itemStore.reload({params : {start : 0,limit : 100 }}) }, interval : 2000, //2秒刷新一次 scope : this }; //定时执行任务 Ext.util.TaskManager.start(task);

最新回复(0)