Vue 的父组件和子组件生命周期钩子执行顺序是什么

1.加载渲染过程

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

 

2.组件更新过程

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

 

3.销毁过程

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

上一篇:Proxool连接池遇到Created a new connection but it failed its test


下一篇:新Android Studio如何设置Created by username on 2021/2/17.