diff --git a/v2/reactive/reactive-object.html b/v2/reactive/reactive-object.html index ad74527..29aa26a 100644 --- a/v2/reactive/reactive-object.html +++ b/v2/reactive/reactive-object.html @@ -59,7 +59,7 @@ initWatch(vm, opts.watch) } } -
initState 方法主要是对 props、methods、data、computed 和 wathcer 等属性做了初始化操作。这里我们重点分析 props 和 data,对于其它属性的初始化我们之后再详细分析。
function initProps (vm: Component, propsOptions: Object) {
+initState 方法主要是对 props、methods、data、computed 和 watcher 等属性做了初始化操作。这里我们重点分析 props 和 data,对于其它属性的初始化我们之后再详细分析。
function initProps (vm: Component, propsOptions: Object) {
const propsData = vm.$options.propsData || {}
const props = vm._props = {}
// cache prop keys so that future props updates can iterate using Array