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函數(shù)},failure : function(form,action){Ext.Msg.alert('提示','保存失敗!請重試!');}});},reloadStore : function(){this.getGoodsStore.reload();}
1 回答

鴻蒙傳說
TA貢獻1865條經(jīng)驗 獲得超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函數(shù) this .reloadStore(); }, failure: function (form, action) { Ext.Msg.alert( '提示' , '保存失敗!請重試!' ); } }, this ); // 注意此處不同 } }, reloadStore : function (){ this .getGoodsStore.reload(); } } |
添加回答
舉報
0/150
提交
取消