renderTo:Ext.get('content-panel')
其中get 方法参数为container 的id。
add( component ) : Ext.Component[]/Ext.Component5
Adds Component(s) to this Container.
treepan.add(ajaxTree);
treepan.doLayout();
在一个组件上增加一个组件。
remove( component, [autoDestroy] ) : Ext.Component3
Removes a component from this container. ...
Ext.container.AbstractContainer
view sourceremoveAll( [autoDestroy] ) : Ext.Component[]4
Removes all components from this container. ...
删除组件