vue-design icon indicating copy to clipboard operation
vue-design copied to clipboard

初识Watcher章节,Watcher构造函数中this.dirty应该是true

Open JYDwayne opened this issue 3 years ago • 0 comments

源码中是:
this.cb = cb
this.id = ++uid // uid for batching
this.active = true
this.dirty = this.lazy // for lazy watchers

文中的表述是:
this.cb = cb
this.id = ++uid // uid for batching
this.active = true
this.dirty = this.computed // for computed watchers

JYDwayne avatar Jun 01 '21 12:06 JYDwayne