挂载阶段
父beforecreated->父created->父beforemounted->子beforecreated->子created->子beforemounted->子mounted->父mounted
更新阶段
父beforeUpdate -> 子beforeUpdate -> 子updated -> 父updated
销毁阶段
父beforeDestroy -> 子beforeDestroy -> 子destroyed -> 父destroyed
总结:
父组件先执行,然后子组件执行,等子组件执行完成,父组件收尾
标签:updated,生命周期,beforemounted,beforeDestroy,beforeUpdate,destroyed,Vue,组件 From: https://www.cnblogs.com/qianduan-Wu/p/16724951.html