<div id="hello-win" class="x-hidden">
</div>
$("#timeXuan").click(function(){
if(!timeXuan){
timeXuan = new Ext.Window({
title: "时间选择",
el:'hello-win',
layout:'fit',
width:220,
height:130,
closeAction:'hide',
plain: true,
items: [timeSlotPanel],
buttonAlign: 'center',//居中
buttons : [{
text : '确定',
height:10,
handler : function(){
}
},{
text : '取消',
height:10,
handler : function(){
timeXuan.hide();
}
}]
});
}
timeXuan.setPosition(308, 110); //定义位置
timeXuan.show(this);
});