Extjs遮罩

1.图片

1
var globalMask = new Ext.LoadMask( Ext.getBody(), {msg:"<div class=\"maskcls\"><img src='<%=rootPath%>/images/waiting.gif'></img></div>"});

2.文字

1
var globalMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});

调用

1
2
3
4
//显示
globalMask.show();
//隐藏
globalMask.hide();