Ext 的各种window

请关注新浪微博 账号:IT开发控(http://weibo.com/u/3356934744

Ext.Msg
1)alert
Ext.Msg.alert('信息','请选择记录');

2)confirm
Ext.MessageBox.confirm('警告','确定删除?',function(btn){
           if(btn == 'yes'){//no
                               
           }
},this);

3)prompt
Ext.Msg.prompt('姓名', '请输入姓名:', function(btn, text){
           if (btn == 'ok'){//cancel
                    alert(text);
           }
});

4)show
Ext.Msg.show({
              title:'保存',
              msg: '确定XX?',
              buttons: Ext.Msg.YESNOCANCEL,
              fn: this._showWin,
              icon: Ext.MessageBox.QUESTION
            },this);

_showWin : function(btn){
                alert(btn);
}

你可能感兴趣的:(ext)