Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a87c0da

Browse files
authoredOct 7, 2016
Merge pull request #73 from xie-qianyue/2.0-cn
Fix translation error.
2 parents d49e473 + 48d65af commit a87c0da

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎src/guide/instance.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ var myComponentInstance = new MyComponent()
3232
尽管可以命令式地创建扩展实例,不过在多数情况下将组件构造器注册为一个自定义元素,然后声明式地用在模板中。我们将在后面详细说明[组件系统](/components.md)。现在你只需知道所有的 Vue.js 组件其实都是被扩展的 Vue 实例。
3333

3434

35-
## 属性和方法
36-
37-
38-
每个 Vue 实例 **代理** 所有属性都在 `data` 对象中:
39-
40-
4135
## 属性与方法
4236

4337
每个 Vue 实例都会**代理**`data` 对象里所有的属性:
@@ -79,7 +73,7 @@ vm.$watch('a', function (newVal, oldVal) {
7973
})
8074
```
8175

82-
<p class="tip">注意, 不要再实例实现中或者回调函数中(如 `vm.$watch('a', newVal => this.myMethod())`)使用箭头函数。原因是箭头函数绑定父上下文,所以 `this` 不会像预想的一样是 Vue 实例, 而是 `this.myMethod` 未被定义。</p>
76+
<p class="tip">注意, 不要在实例属性或者回调函数中(如 `vm.$watch('a', newVal => this.myMethod())`)使用箭头函数。原因是箭头函数绑定父上下文,所以 `this` 不会像预想的一样是 Vue 实例, 而是 `this.myMethod` 未被定义。</p>
8377

8478
实例属性和方法的完整列表中查阅 [API 参考](/api)
8579

0 commit comments

Comments
 (0)
Please sign in to comment.