父子组件的生命周期(执行顺序)

结合父子组件之后,一个完整的父子组件生命周期:
父beforeCreate -> 父created -> 父beforeMount -> 子beforeCreate -> 子created -> 子beforeMount -> 子mounted -> 父mounted->父beforeUpdate->子beforeUpdate->子updated->父updated->父beforeDestroy->子beforeDestroy->子destroyed->父destroyed

posted @ 2022-10-10 16:22  seven&night  阅读(705)  评论(0编辑  收藏  举报