extinfomsgbox.js

来自「一个自娱自乐的demo 开发环境 apache-tomcat-6.0.16」· JavaScript 代码 · 共 37 行

JS
37
字号
// 显示提示对话框 OK Button
function showInfoMessageBox_1(strTitle, strMsg, fun) {
    Ext.Msg.show( {
        title : strTitle,
        msg : strMsg,
        buttons : Ext.Msg.OK,
        minWidth : 200,
        fn : fun,
        icon : Ext.MessageBox.INFO
    });
}

// 显示提示对话框 OK Button
function showInfoMessageBox_2(strTitle, strMsg) {
    Ext.Msg.show( {
        title : strTitle,
        msg : strMsg,
        buttons : Ext.Msg.OK,
        minWidth : 200,
        icon : Ext.MessageBox.INFO
    });
}
// 显示提示对话框 OKCANCEL Button
function showInfoMessageBox_3(strTitle, strMsg, fun){
	Ext.Msg.show( {
        title : strTitle,
        msg : strMsg,
        buttons : Ext.Msg.OKCANCEL,
        minWidth : 200,
        fn : fun,
        icon : Ext.MessageBox.QUESTION
    });
}
function inputInfoBox(strTitle, strMsg, fn) {
    Ext.Msg.prompt(strTitle, strMsg, fn);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?