vue2 底层响应式流程图
2022-11-11 02:55:55 0 举报
vue2 底层响应式流程图
作者其他创作
大纲/内容
init (Vue.prototype._init)
initMixin(Vue) // _init()
initState<br>初始化数据
initData
observe
class Observer
Array<br>原型覆盖
Obj
this.walk
defineReactive<br>数据响应式
class Dep<br>发布订阅模式
addSub
depend
notify
get
set
vm.$mount (拓写)
mountComponent
class Watcher
get
addDep
update
queueWatcher
nextTick($nextTick)
timerFunc
flushCallbacks
run
updateComponent<br>更新组件的fn
new Watcher
Vue.prototype._update
vm.__path __
patchVnode
$mount(原生)
vue2 底层响应式流程图
diff 算法详细文章<br>https://www.cnblogs.com/caijinghong/p/16879388.html
收藏
收藏
0 条评论
下一页
为你推荐
查看更多