submitForm : function(){if(this.getForm().isValid()){this.getForm().submit({url : 'data/goods/saveGoods.jsp',method : 'post',waitTitle : '提示',waitMsg : '正在保存......',success : function(form,action){Ext.Msg.alert('提示','保存成功!');// 问题:// 怎么去调用下面的reloadStore函数},failure : function(form,action){Ext.Msg.alert('提示','保存失败!请重试!');}});},reloadStore : function(){this.getGoodsStore.reload();}
1 回答
鸿蒙传说
TA贡献1865条经验 获得超7个赞
var obj = { submitForm : function() { if (this.getForm().isValid()) { this.getForm().submit({ url: 'data/goods/saveGoods.jsp', method: 'post', waitTitle: '提示', waitMsg: '正在保存......', success: function (form, action) { Ext.Msg.alert('提示', '保存成功!'); // 问题: // 怎么去调用下面的reloadStore函数 this.reloadStore(); }, failure: function (form, action) { Ext.Msg.alert('提示', '保存失败!请重试!'); } },this); // 注意此处不同 } }, reloadStore : function(){ this.getGoodsStore.reload(); }} |
添加回答
举报
0/150
提交
取消
