1. 创建panel [javascript] view plain copy var test_panel = Ext.create('widget.panel',{ id: 'test_panel_id' }); 2. 动态更新 Ext.getCmp('test_panel_id').removeAll(); test_panel.add( Ext.create('widget.panel',{ id:'test_panel_details_id', html: '自行定义,动态更新可写到Ajax success,submit success等处' }) ); Ext.getCmp('test_panel_id').doLayout(true); //别忘了这句