Vue生命周期
2021-04-08 15:52:45 0 举报
Vue生命周期函数示意图
作者其他创作
大纲/内容
mounted
distoryed
beforeDestory
destoryed
Compile el'souterHTMLas template *
Yes
Initinjections & reactivity
when vm.$distory()is called
created
Virtual DOMre-renderand patch
whenvm.$mount(el)is called
update
InitEvents & lifecycle
beforeMount
when datachanges
new Vue()
before update
No
beforeCreate
Has \"template\" option?
Has \"el\" option?
Compile templateintorender function *
Create vm.$eland replace\"el\" with it
0 条评论
下一页
为你推荐
查看更多