码迷,mamicode.com
首页 > Web开发 > 详细

EXT.JS以下两种写法在初始载入时是一样的效果

时间:2017-01-11 15:41:53      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:function   launch   blog   class   asc   conf   tap   read   alert   

/*
Ext.application({
    name: ‘MyfirstApplication‘,
    launch: function () {
        Ext.Msg.alert("Hello", "My first App!");
    }
});
*/
Ext.onReady(function () {
    //alert("This is my first Extjs app !");
    //Ext.Msg.alert("Alert", "This is my first Ext js app !");
    Ext.Msg.confirm("Confirm","Do you like Ext JS 5?",
                   function(btn){
        if (btn == "yes"){
            Ext.Msg.alert("Great", "This is my first Ext js app !");
        } else {
            Ext.Msg.alert("Really", "Too Bad!");
        }
    });
});

  

EXT.JS以下两种写法在初始载入时是一样的效果

标签:function   launch   blog   class   asc   conf   tap   read   alert   

原文地址:http://www.cnblogs.com/aguncn/p/6273826.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!