Home > Article > Web Front-end > Introduction to Ext.MessageBox tool class_YUI.Ext related
Note: 1. Ext.MessageBox is a tool class, inherited from object
2. In essence, it is just a layer of the current page.
The case is as follows:
Copy code The code is as follows:
Ext.onReady(function(){ Ext.MessageBox.alert("提示","请单击我,确定",callBack); function callBack(id){ alert("单击的按钮ID是:"+id); } Ext.MessageBox.confirm("提示","做出选择,确定",cb2); function cb2(id){ if(id=='yes'){ alert("你单击了是"); }else{ alert("你单击了否"); } } Ext.MessageBox.prompt("提示","输入一些内容看看",cb3,this,true) function cb3(id,msg){ alert("单击的按钮Id是:"+id+"\n"+"输入的内容是:"+msg); } });
The above is the Ext.MessageBox tool Class Introduction_YUI.Ext related content, please pay attention to the PHP Chinese website (www.php.cn) for more related content!