var win = new Ext.Window({ title:'批量设置状态', // el:'window-win', layout:'form', autoLoad:{ url:'setSuccInit.action', params:{flag:0,sheetType:2}, scripts:true }, width:600, height:300, x:150, y:20, colseAction:'close', buttonAlign : 'center' , buttons:[{ text:'关闭', handler: function(){win.close();} }] }); win.show();