extjs中mvc中store怎么定时加载数据
1个回答
展开全部
t.define('head.controller.HeadController',{ extend:'Ext.app.Controller', views:['List','Edit'], models:['Tech','Bug','Emp'], stores:['Tech','Bug','Emp'], refs:[{ ref:'pageToolBar', selector:'list pagingtoolbar' },{ ref:'list', selector:'list' }], init:function(){ this.control({ 'list button[action=edit]':{ click:this.editTech }, 'list button[action=delete]':{ click:this.deleteTech }, 'edit button[action=edit]':{ click:this.updateTech } }) }, editTech:function(button){ var grid = button.up('grid'); var records = grid.getSelectionModel().getSelection(); if(records.length != 1){ Ext.Msg.alert('提示', '请选择一个工单指派'); return; } var view = Ext.widget('edit'); view.down('form').loadRecord(records[0]);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询