`
qinya06
  • 浏览: 583292 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

ext Msg

EXT 
阅读更多
buttons: [
        {
          text: '发送',
          handler:function(){
             form3.getForm().submit({
                    success:function(form1,action){
                          Ext.Msg.alert('返回报文',action.result.msg);
                             },
                    failure:function(){
                          Ext.Msg.alert('错误','操作失败!');
                             }
              });
            }},

          {text: '取消'},

          {text: '查看日志'}

    ]


Ext.Msg.show({
        title : '消息标题',
        msg :错误,操作失败,
        buttons : Ext.Msg.OK,
        animEl : 'elId',
        icon : Ext.MessageBox.ERROR
});
Ext.MessageBox.alert('错误','操作失败!', function(btn, text){
       if(btn == 'ok'){
       // code here

       } else {
      
       // code here
    })

Ext.MessageBox.alert()以及Ext.MessageBox.prompt()如同 
window.alert()和window.prompt(),
如果想做复杂的窗口,请使用Ext.Window,可以配置更多的布局和样式。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics