

vue生命周期钩子函数
/beforeCreate 组件实例刚被创建,组件属性计算之前,如data属性等
/created 组件实例创建完成,属性已绑定,但DOM还未生成,$el属性还不存在
/beforeMount 模板编译/挂载之前
/mounted 模板编译/挂载之后
/beforeUpdate 组件更新之前
/updated 组件更新之后
/activated for keep-alive,组件被激活时调用
/deactivated for keep-alive,组件被移除时调用
/beforeDestory 组件销毁前调用
/destroyed 组件销毁后调用
https://segmentfault.com/a/1190000008010666?utm_source=tag-newest#articleHeader0
https://blog.csdn.net/qq_15766181/article/details/73549933

https://www.codercto.com/a/24651.html
vue+vuex+axios 仿原生app切换效果和路由缓存实践
网友评论