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. ...删除组件
本文介绍如何使用 ExtJS 对容器进行操作,包括向容器中添加组件、从容器中移除组件及移除所有组件的方法。具体涉及的 API 方法有 add、remove 和 removeAll,并附带示例代码。
3136

被折叠的 条评论
为什么被折叠?



