摘要: class Watcher { constructor(obj, key, cb) { // Watcher构造函数,先把当前watcher放到一个地方 window.curWatcher = this // 触发getter,在getter里就可以将先前放好的watcher拿出来放到其dep中 t 阅读全文
posted @ 2021-06-23 18:42 丁同亚的博客 阅读(42) 评论(0) 推荐(0) 编辑