首页 > 其他 > 详细

Vue 生命周期LIFECYCLE是8个吗?

时间:2018-11-16 16:25:51      阅读:205      评论:0      收藏:0      [点我收藏+]

vue生命周期钩子个数是:11个

export const LIFECYCLE_HOOKS = [
  ‘beforeCreate‘,
  ‘created‘,
  ‘beforeMount‘,
  ‘mounted‘,
  ‘beforeUpdate‘,
  ‘updated‘,
  ‘beforeDestroy‘,
  ‘destroyed‘,
  ‘activated‘,
  ‘deactivated‘,
  ‘errorCaptured‘
]

github地址:

https://github.com/vuejs/vue/blob/dev/src/shared/constants.js

Vue 生命周期LIFECYCLE是8个吗?

原文:https://www.cnblogs.com/mengfangui/p/9969882.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!