使用 `Ext.window.Window` class 实例后如何释放内存?
How free memory after using `Ext.window.Window` class instance?
我正在使用 Extjs-6 for developing my application. I have most than 20 controller in my application. In all of these controllers, some times, these controllers show a Ext.window.Window
class 实例,然后用户关闭此 window(换句话说,所有控制器都可以显示弹出窗口)。
我用destroy
函数关闭window
是真的吗?这是释放内存吗?这样就不会发生内存泄漏?一句话,What's the best way?
我正在使用 Extjs-6 for developing my application. I have most than 20 controller in my application. In all of these controllers, some times, these controllers show a Ext.window.Window
class 实例,然后用户关闭此 window(换句话说,所有控制器都可以显示弹出窗口)。
我用destroy
函数关闭window
是真的吗?这是释放内存吗?这样就不会发生内存泄漏?一句话,What's the best way?