美文网首页
父子组件生命周期调用顺序

父子组件生命周期调用顺序

作者: 玲儿珑 | 来源:发表于2020-05-20 17:08 被阅读0次

https://www.jianshu.com/p/e480baa9e39f

  • 加载渲染过程

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

  • 子组件更新过程

父beforeUpdate->子beforeUpdate->子updated->父updated

  • 父组件更新过程

父beforeUpdate->父updated

  • 销毁过程

父beforeDestroy->子beforeDestroy->子destroyed->父destroyed

相关文章

网友评论

      本文标题:父子组件生命周期调用顺序

      本文链接:https://www.haomeiwen.com/subject/gepnohtx.html