问题很简单,但我找不到一个好的、明确的答案。
正确的方法是什么:
- 从容器中删除控件
- 在 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/