Skip to content

模拟代码错误 #62

@lazyunderscore

Description

@lazyunderscore

开始依赖收集
class Vue { constructor(options) { this._data = options.data; observer(this._data, options.render); let watcher = new Watcher(this, ); } }

  1. watcher的定义应该在observer之前,否则,defineReactive 无法获被添加到watcher
  2. watcher定义缺少参数

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions