您的位置:首页 > 其它

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

2012-03-13 09:37 337 查看
用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();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐