【发布时间】:2015-06-02 10:00:44
【问题描述】:
我在 ExtJs-in-action 中阅读了以下评论 -
'Do not dismiss the destruction portion of a Component’s lifecycle if you plan on developing your own custom
Components. Many developers have gotten into trouble when they’ve ignored this crucial step and have code that
has left artifacts such as data Stores that continuously poll web servers...'
我从未在 3.4.x 中对我的容器/组件调用显式析构函数/销毁
虽然事情似乎很好 - 我很好奇
1. 在哪些情况下实现析构函数变得必不可少
2.在关闭浏览器实例时处理组件销毁的正确约定是什么。
【问题讨论】: