日期:2014-05-16 浏览次数:20399 次
Ext.getCmp('compId').add(newItem).show(); Ext.getCmp('compId').doLayout();
Ext.getCmp('compId').add(newItem);
var win2AddDxSubject = null; function openAddDxSubjectWin() { if (win2AddDxSubject == null) { win2AddDxSubject = new Ext.Window({ applyTo:'hello-win', layout:'fit', width:500, height:300, closeAction:'hide', autoDistroy:false, closable:true, plain: true, buttons: [{ text:'添加', disabled:true },{ text: '取消', handler: function(){ win2AddDxSubject.hide(); } }] }); } win2AddDxSubject.show();