Home > Web Front-end > JS Tutorial > Introduction to Ext.MessageBox tool class_YUI.Ext related

Introduction to Ext.MessageBox tool class_YUI.Ext related

PHP中文网
Release: 2016-05-16 18:39:41
Original
1100 people have browsed it

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); 
} 
});
Copy after login

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template