ExtJs 开发笔记
1: 向Ext对象中动态添加Item:
http://topic.csdn.net/u/20081014/23/c4e9b7c4-5941-452b-8f65-a50680d1ed2f.html
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();