EXTjs获取元素

来源:互联网 发布:少年包青天3知乎 编辑:程序博客网 时间:2024/05/22 02:13

  renderTo:Ext.get('content-panel')

其中get 方法参数为container 的id。

add( component ) : Ext.Component[]/Ext.Component5Adds Component(s) to this Container.
 treepan.add(ajaxTree);
    treepan.doLayout();

在一个组件上增加一个组件。


remove( component, [autoDestroy] ) : Ext.Component3Removes a component from this container. ... Ext.container.AbstractContainerview sourceremoveAll( [autoDestroy] ) : Ext.Component[]4Removes all components from this container. ...

删除组件

0 0