Ext. MessageBox tool class introduction, research source code to find more things. Note: 1. Ext. MessageBox is a tool class inherited from the object.
2. In essence, it is only a layer of the current page.
The example is as follows:
The Code is as follows:
Ext. onReady (function () {Ext. messageBox. alert ("prompt", "click me, OK", callBack); function callBack (id) {alert ("click the button ID:" + id);} Ext. messageBox. confirm ("prompt", "make selection, OK", cb2); function cb2 (id) {if (id = 'yes ') {alert ("You clicked yes");} else {alert ("You clicked no") ;}} Ext. messageBox. prompt ("prompt", "Enter some content to see", cb3, this, true) function cb3 (id, msg) {alert ("the clicked button Id is: "+ id +" \ n "+": "+ msg );}});
The above is the Ext. MessageBox tool class introduction _ YUI. Ext. For more information, please follow the PHP Chinese Network (www.php1.cn )!