Vue3生命周期图
2021-10-09 13:40:39 13 举报
Vue3生命周期图
作者其他创作
大纲/内容
complie templateinto render function
beforeMount
Unmounted
Virtual DOMre-renderedand patch
complie el`s innerHTMLas template
Mounted
NO
created
when data change
Init injections & reactivity注入依赖相关
beforeUpdate
app = Vue.createApp(options)app.mount(el)创建实例挂在实例
create app.$el and replace \"el\" with it
unmounted
beforeCreate
updated
YES
Has \"template\" options?
Init events & lifecycle初始化事件相关、生命周期相关
beforeUnmount
whenapp.unmount()is called
0 条评论
下一页