一、屬性
var _window=new Ext.Window({
title:"登陸",
renderTo:Ext.getBody(),
frame:true,
plain:true,
resizable:false,
buttonAlign:"right",
closeAction:"hide",
maximizable:true,
closable:true,
bodyStyle:"padding:4px",
width:310,
height:230,
layout:"form",
lableWidth:45,
defaults:{xtype:"textfield",width:180},
items:[{fieldLabel:"帳號"},{fieldLabel:"密碼"}],
buttons:[{text:"確定"},{text:"取消",handler:function(){_window.hide();}}],
listeners:{
"show":function(){
alert("顯示");
},
"hide":function(){
alert("隱藏");
},
"close":function(){
alert("關閉");
}
}
})
_window.show();
})