1. Ext.MessageBox.alert()方法
API
alert ( String title, String msg, Function fn, Object scope ) : Ext.MessageBox
參數項:
title : String
The title bar text
msg : String
The message box body text
fn : Function
(optional) The callback function invoked after the message box is closed
scope : Object
(optional) The scope of the callback function
有四個參數,我們這裏主要介紹前面三個。
title,標題,必選
msg,本體文本,必選
fn,在關閉彈出窗口後觸發該函數,可選。
示例一:
Ext.onReady(
function TestMessageBox() {
Ext.MessageBox.alert("測試","彈出提示框");
}
);
添加事件處理
Ext.onReady(
function Te