destructor
Description
移除一个 scheduler 实例
destructor: () => void
Example
var myScheduler = Scheduler.getSchedulerInstance();
// 移除一个 scheduler 实例
myScheduler.destructor();
Details
此方法用于移除一个 scheduler 实例,并触发 onDestroy 事件。
当调用 destructor 时,它将:
- 清除加载到该 scheduler 实例中的所有数据
- 销毁与 scheduler 关联的 DataProcessor
- 从 DOM 中移除该 scheduler
- 解绑所有通过 event 方法绑定的 DOM 事件
注释
对于不支持多个 scheduler 实例的版本(GPL 或 Individual 版本),调用 destructor 后该 scheduler 将不可用,直到页面刷新。
Related API
Related Guides
Change log
- 版本 6.0 中新增
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.