您的位置:首页 > Web前端 > JavaScript

Extjs window弹出框 第二次打开时会报:【'addCls' 为空或不是对象】错误

2014-06-18 12:24 316 查看
代码如下:

function init() {

    win = Ext.create("Ext.Window", {

        title : "ExtJS Window",

        width : 500,

        height : 300,

        contentEl: 'content',

        buttons : [ {

            text : "确定",

            handler: function () {

                this.up("window").close();

            }

        } ],

        listeners: {

            close: function () {

                alert("关闭");

            }

        },

        autoShow : false

    });

}

var win;

Ext.onReady(init);

添加closeAction: 'hide'为正解
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐