Ext.onReady(function(){
//Ext.MessageBox工具类举例
Ext.MessageBox.alert("我是标题","HelloWorld!",function(){
console.info(this);
alert("我是回调函数");
},this);
//不是单纯地alert,alert在该行停住,类似debugger;
//而Ext.MessageBox.alert()相当于一个div
//
//
// //询问框
// Ext.Msg.confirm("提示信息","确认删除该记录吗?",function(op){
//
// if (op=="yes") {
// alert("确认了!");
// }else{
// alert("取消了!");
// }
// });
//
// //输入框
// Ext.Msg.prompt("我是标题","请输入姓名:",function(op,val){
// console.info(op);
// console.info(val);
//
// },this,true,"张三");
//
// //等待
// Ext.Msg.wait("提示信息","我是内容",{
// interval:500,//循环定时的间隔
// duration:5000,//总时长
// increment:10,//多少次执行完进度条
// text:"Updating",
// scope:this,//回调函数
// fn:function(){
// alert("执行成功");
// },
// animate:true //平滑进度
// });
//
// //show方法
// Ext.Msg.show({
//
// title:"我是自定义提示框",
// msg:"我是内容",
// width:300,
// height:300,
// buttons:Ext.Msg.YESNOCANCEL,
// icon:Ext.Msg.ERROR
// });
});