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