跳到主要内容

何时需要使用 beforeDestory ?

生命周期

  • 解绑自定义事件 event.$off
  • 清理定时器
  • 解绑自定义的 DOM 事件,如 window scroll 等

https://lzwdot.github.io/docs/26831