• ExtJS6.2版本----组件---confim询问框--prompt输入框--wait等待缓冲框--show自定义框


    test1.html

    <!DOCTYPE html>
    <html>
    <head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <!-- Ext的样式文件 -->
    <link rel="stylesheet" type="text/css" href="extjs/themes/neptune/theme-neptune-all.css" />
    <!--Ext的核心文件 -->
    <script src="extjs/ext-all.js" type="text/javascript"></script>
    <!-- 国际化文件 -->
    <script src="extjs/locale-zh_CN.js" type="text/javascript"></script>
    <!-- 测试文件 -->
    <script type="text/javascript" src="text1.js"></script>
    </head>
    <body>
    
    </body>
    </html>

    text1.js

    Ext.onReady(function(){

    });

    Ext.onReady(function(){
    //Ext.MessageBox.alert('提示信息','hello word!');
    //Ext.Msg.alert('Title', 'The quick brown fox jumped over the lazy dog.', Ext.emptyFn);

    /*Ext.Msg.alert('我是标题','Hello World!',function(){
    console.info(this);
    alert('我是回调函数!');
    },this);*/

    /*//询问框
    Ext.Msg.confirm('提示信息','确定删除该条纪录么?',function(op){
    if(op=='yes'){
    alert('确认了!');
    }else{
    alert('取消了!');
    }
    });*/

    /* //输入框
    Ext.Msg.prompt('我是标题','请输入姓名:',function(op,val){
    //op ok cancel
    console.info(op);
    console.info(val);
    },this,true,'张三');
    */

    /*//等待框
    Ext.Msg.wait('提示信息','我是内容',{
    interval: 400, //循环定时的间隔
    duration: 2000, //总时长
    increment: 5, //执行进度条的次数
    text: '更新中,请稍后...', //进度条上的文字
    scope: this,
    fn: function(){
    alert('更新成功!');
    },
    animate:true //更新渲染时提供一个动画效果
    });*/

    //自定义show方法
    Ext.Msg.show({
    title:'我是自定义的提示框!',
    msg:'我是内容!',
    300,
    height:150,
    buttons:Ext.Msg.YESNOCANCEL,
    icon:Ext.Msg.ERROR //图标--ERROR INFO QUESTION WARNING
    });

    });

  • 相关阅读:
    [GoogleAppEngine]编译问题-locale zh_CN
    [Android]Webview中JS接口调用Java-版本问题
    [HTTP基础]3. HTTP链接
    [WebView]简单总结
    [HTTP基础]1.网络开发必备的HTTP协议知识
    [HTTP基础]2.Http和Socket区别
    [HTTP]Android抓包方法(Wireshark)
    [Android]Process&Thread-基本原理
    [Android]Thread两种实现方法
    [Android]消息队列模型——Thread,Handler,Looper,Massage Queue
  • 原文地址:https://www.cnblogs.com/fdxjava/p/10684413.html
Copyright © 2020-2023  润新知