父子组件生命周期执行顺序:首先执行父组件的 beforeCreate created beforeMount 。在执行子组件的beforeCreate created beforeMount mounted
father beforeCreate App.vue
father created App.vue
father beforeMount App.vue
son beforeCreate Home.vue
son created Home.vue
son beforeMount Home.vue
son mounted Home.vue
father mounted App.vue
网友评论