父子組件生命周期執(zhí)行順序:首先執(zhí)行父組件的 beforeCreate created beforeMount 。在執(zhí)行子組件的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