.()
把显示着的当前message box隐藏起来。
.Ext.MessageBox.alert()方法
有四个参数: alert( title , msg , function(){} ,this)
其中title,msg为必选参数,function为可选参数,在关闭弹出窗口后触发,可以传入点击的按钮的id,第四个参数scope:指回调函数作用域。
.Ext.MessageBox.alert()方法
有四个参数: alert( title , msg , function(){} ,this)
其中title,msg为必选参数,function为可选参数,在关闭弹出窗口后触发,可以传入点击的按钮的id,第四个参数scope:指回调函数作用域。
Ext.Msg.alert(”Notice”,”hello world!”); //alert会阻塞程序的执行,而Ext版的alert是异步执行
Ext.Msg.alert(”Notice”,”<font color=red>hello world!</font>”); //支持html格式
Ext.Msg.alert(”Notice”,”<font color=red>hello world!</font>”,function callback(id){alert(’您点的是’+id);});
09年新晋3D主流网游《天下贰》,网易六年亿资打造