丁同亚的博客

夺朱非正色

导航

2021年6月23日 #

vue之MVVM双向绑定原理

摘要: class Watcher { constructor(obj, key, cb) { // Watcher构造函数,先把当前watcher放到一个地方 window.curWatcher = this // 触发getter,在getter里就可以将先前放好的watcher拿出来放到其dep中 t 阅读全文

posted @ 2021-06-23 18:42 丁同亚的博客 阅读(71) 评论(0) 推荐(0)