vue常用的方法
vue生命周期常用的8个勾子函数
初始化显示
*beforeCreate()
*created()
*beforeMount()
*mounted() 更新状态:this.xxx=value
*beforeUpdate()
*updated() 销毁 vue 实例:vm.$destory()
*beforeDestory()
*destoryed()
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/e3e32a7f5de36ec3535f1058b18e7022.png)
文章学习自
https://blog.csdn.net/Guo1111122/article/details/101629194