javascript - ExtJs 4,从容器中删除控件并将其从内存中删除的正确方法是什么?

标签 javascript extjs extjs4

问题很简单,但我找不到一个好的、明确的答案。

正确的方法是什么:

  1. 从容器中删除控件
  2. 在 ExtJs 4 中将其从内存中删除?

最佳答案

Ext.AbstractContainer.remove方法已经不远了。

remove( Component/String component, [Boolean autoDestroy]) : Void

Removes a component from this container. Fires the beforeremove event before removing, then fires the remove event after the component has been removed. Parameters

  • component : Component/String The component reference or id to remove.

  • autoDestroy : Boolean (optional) True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config.

关于javascript - ExtJs 4,从容器中删除控件并将其从内存中删除的正确方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5699969/

相关文章:

javascript - ExtJS:使用图表构建应用程序测试失败

javascript - ExtJS 4 - 网格中的数据不可见

javascript - 找到包含所有 <div> 的边界框

javascript - 如何将我的方法重写为 async/await?

javascript - extjs 4.1.0 Controller 的 init 函数不会被调用

ExtJS4 - 每个面板实例存储?

javascript - Extjs - formPanel 上的 isValid()

javascript - css 不是 AngularJS 中现有元素的函数

javascript - 当存在多个同名数据对象时,如何从 JSON 响应中仅获取第一个数据对象的值?

button - 如何将X放在文本字段中以清除extjs中的文本