Vue笔记

作者: 华子1889 | 来源:发表于2019-01-02 16:02 被阅读0次
Pasted Graphic.jpg

mint-ui

Pasted Graphic2.jpg

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

bVEo3w.png

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

相关文章

网友评论

      本文标题:Vue笔记

      本文链接:https://www.haomeiwen.com/subject/idizlqtx.html