读书人

Ext 的Ajax 请求增添mask 等待效果

发布时间: 2012-11-20 09:55:43 作者: rapoo

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");      }  



读书人网 >Ajax

热点推荐