Vue 的父组件和子组件生命周期钩子执行顺序是什么
作者:互联网
1.加载渲染过程
父beforeCreate->父created->父beforeMount->子beforeCreate->子created->子beforeMount->子mounted->父mounted
2.组件更新过程
父beforeUpdate->子beforeUpdate->子updated->父updated
3.销毁过程
父beforeDestroy->子beforeDestroy->子destroyed->父destroyed
标签:beforeUpdate,Vue,beforeCreate,created,beforeDestroy,updated,和子,组件 来源: https://www.cnblogs.com/LadyZhang/p/14766516.html