Ext.Window 不能重复打开 的解决方法

来源:互联网 发布:奇葩说哪一集 知乎 编辑:程序博客网 时间:2024/05/20 15:40

用Ext.Window引用固定控件时,关闭window后不能再次打开,

要添加 closeAction: 'hide',

如:

   var w = new Ext.Window({
        contentEl: "divEduEdit", //主体显示的html元素,也可以写为el:"win"
        width: 560,
        height: 200,
        modal: true,
        title: "教育经历",
        closeAction: 'hide',
        buttons: [{
            text: '确定',
            handler: function() {
                saveEdu();
            }
        }, {
            text: '重置',
            handler: function() {
                resetEducation();
            }
        }, {
            text: '取消',
            handler: function() {
                w.hide();
            }
}]
        });
        w.show();

原创粉丝点击