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,可以配置更多的布局和样式。
{
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,可以配置更多的布局和样式。