Ext 的Ajax 请求,添加mask 等待效果。
今天在做 Ext.Ajax.request({});的觉得需要Mask遮挡的效果
方法一 :(标红部分)
var myMask = new Ext.LoadMask(Ext.getBody(), { msg: '正在保存,请稍后!', removeMask: true //完成后移除 }); myMask.show(); Ext.Ajax.request({ url : 'infoPlatform/TogBuy!publish.action', waitMsg : '正在发布...', scope : this, success : function(f, o) { myMask.hide(); App.setAlert(true, "test"); }, failure : function(f, o) { myMask.hide(); App.setAlert(false, "test"); }