vue3.0生命周期

 

vue 2.x的生命周期

  • beforeCreate
  • created
  • beforeMount
  • mounted
  • beforeUpdate
  • updated
  • beforeDestroy
  • destroyed
  • errorCaptured

vue 3

  • setup  (将2.x版本中beforeCreate和created)
  • onBeforeMount
  • onMounted
  • onBeforeUpdate
  • onUpdated
  • onBeforeUnmount
  • onUnmounted
  • onErrorCaptured
posted @ 2020-10-10 16:37  迷茫_D  阅读(2080)  评论(0编辑  收藏  举报