Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 ExtJS3 中,我使用 Ext.data.Store 的“autoDestroy”配置来自动销毁存储,只要它所属的网格被销毁。在 ExtJS4 中,这个配置似乎消失了。
我应该如何在 ExtJS4 中做到这一点?我必须自己破坏商店吗?
谢谢你的帮助!
你是对的,autoDestroy 配置消失了。你必须自己摧毁商店。
通常这将由 GarbageCollector 完成,当对您的商店的所有引用都消失时。如果您的商店有一个 ID,您还必须在网格被销毁后将他从 Ext.data.StoreManager 中删除。