https://www.cnblogs.com/thinheader/p/9462125.html 参考连接

 

Vue 的父组件和子组件生命周期钩子函数执行顺序可以归类为以下 4 部分:

加载渲染过程

            父beforeCreate->父created->父beforeMount->子beforeCreate->子created->子beforeMount->子mounted->父mounted

子组件更新过程
            父beforeUpdate->子beforeUpdate->子updated->父updated

父组件更新过程
   父beforeUpdate
->父updated 销毁过程
   父beforeDestroy
->子beforeDestroy->子destroyed->父destroyed

 

相关文章:

  • 2022-02-21
  • 2022-12-23
  • 2021-08-27
  • 2021-07-21
  • 2021-11-25
  • 2021-09-12
猜你喜欢
  • 2021-06-23
  • 2022-02-18
  • 2021-06-14
  • 2021-04-18
  • 2021-12-28
  • 2022-12-23
相关资源
相似解决方案