等待框
Ext.onReady(function() {
Ext.MessageBox.wait(
"提示信息", "hello world",
{
interval: 400,
duration: 2000,
increment: 5,
text: "更新中",
scope: this,
fn: function() {
alert("Done!");
},
animate: true
}
);
});
提示输入框
Ext.Msg.prompt("提示", "hello world", function(opt, val) {
console.info(opt);
console.info(val);
}, this, true, "default value");
提示框
Ext.MessageBox.alert("标题", "hello world", function() {
console.info(this);
alert("回调函数");
}, this);
Ext.Msg.alert("标题", "tip content");
确认框
Ext.Msg.confirm("确认框", "hello world", function(option) {
console.info(option);
if ("yes" == option) {
alert("是");
}
if ("no" == option) {
alert("否");
}
if ("cancel" == option) {
alert("取消");
}
}, this);