1. 新建Vue实例, vm = new Vue({ })

  • beforeCreate
  • created
  • beforeMount
  • mounted

挂载完毕

2. 当 data 被修改时:

  • beforeUpdate
  • updated

3. 当 vm.$destroy() 时:

  • beforeDestroy
  • destroyed