文章浏览阅读286次,点赞9次,收藏7次。在setup 中,有9个旧的生命周期钩子可以访问:其中setup函数是整合 created跟 beforeCreatbeforeMount ->onBeforeMount (挂载前)mounted -> onMounted (挂载后)beforeUpdate -> onBeforeUpdate**(更新前)**updated -> onUpdated (更新后)beforeDestroy -> onBeforeUnmount ( 销毁前)
文章浏览阅读286次,点赞9次,收藏7次。在setup 中,有9个旧的生命周期钩子可以访问:其中setup函数是整合 created跟 beforeCreatbeforeMount ->onBeforeMount (挂载前)mounted -> onMounted (挂载后)beforeUpdate -> onBeforeUpdate**(更新前)**updated -> onUpdated (更新后)beforeDestroy -> onBeforeUnmount ( 销毁前)