export default class Watcher { constructor ( vm: Component, expOrFn: string | Function, cb: Function, options?: Object = {} ) { ... if (typeof expOrFn === 'function') { this.getter = expOrFn } else { this.getter = parsePath(expOrFn) } ... this.value = this.lazy ? undefined : this.get() } }
添加回答
举报
0/150
提交
取消