生命周期
- 挂载(初始化相关属性)
- beforeCreat
- created
- beforeMount
- mounted
- 更新(元素或组件的变更操作)
- beforeUndate
- updated
- 销毁(销毁相关属性)
- beforeDestroy
- destroyed
生命周期示例图
销毁Vue 使用 $destroy()方法
在mounted被触发之后可以使用Vue.$set() 给Vue实例中添加数据
limu-zy 2020-12-14 13:39 原文
生命周期
生命周期示例图
销毁Vue 使用 $destroy()方法
在mounted被触发之后可以使用Vue.$set() 给Vue实例中添加数据