vue之MVVM双向绑定原理
摘要:class Watcher { constructor(obj, key, cb) { // Watcher构造函数,先把当前watcher放到一个地方 window.curWatcher = this // 触发getter,在getter里就可以将先前放好的watcher拿出来放到其dep中 t
阅读全文
posted @ 2021-06-23 18:42
夺朱非正色
posted @ 2021-06-23 18:42
posted @ 2021-06-11 11:26
posted @ 2021-06-06 20:56