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.
有没有办法在模板从 DOM 中删除之前触发一个钩子?
由于无法在 DOM 元素被销毁之前销毁我的 mCustomScrollbars,我有内存泄漏。
现在没有。
但这是在 0.8.2 中引入的,应该随时发布。查看它的发行说明>这里 <insertElement和'Blaze' 部分有钩子。removeElementmoveElement
insertElement
removeElement
moveElement
看起来术语可能会在 1.0 之前不断变化。