父子组件的生命周期

初始: beforeCreate created beforeMount =>挂载 --child beforeCreate --child created --child beforeMount --child mounted mounted

更新: beforeUpdate --child beforeUpdate --child updated updated

死亡: beforeDestroy --child beforeDestroy --child destroyed destroyed

posted @ 2022-11-05 11:42  LT先生  阅读(22)  评论(0编辑  收藏  举报