Ext第一講:信息提示框組件

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章