跳至主要內容

Vue3 Lifecycle

kfkfka zkye...小于 1 分钟天天笔记Vue

Vue3 Lifecycle

生命周期图示

下图展示了实例的生命周期。我们不需要立马弄明白所有的东西,不过随着不断学习和使用,它的参考价值会越来越高。

lifecycle
lifecycle

lifecycle-hooks

选项式 APIHook inside setup
beforeCreateNot needed*
createdNot needed*
beforeMountonBeforeMount
mountedonMounted
beforeUpdateonBeforeUpdate
updatedonUpdated
beforeUnmountonBeforeUnmount
unmountedonUnmounted
errorCapturedonErrorCaptured
renderTrackedonRenderTracked
renderTriggeredonRenderTriggered
activatedonActivated
deactivatedonDeactivated
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.8