Skip to content

Commit 26abbec

Browse files
committed
/api/instance-properties.md
1 parent f335d0f commit 26abbec

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

source/api/instance-properties.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ order: 3
66
### vm.$el
77

88
- **Type:** `HTMLElement`
9-
- **Read only**
9+
- **只读**
1010

11-
The DOM element that the Vue instance is managing.
11+
返回Vue实例正在管理的Dom元素。
1212

1313
### vm.$data
1414

1515
- **Type:** `Object`
1616

17-
The data object that the Vue instance is observing. You can swap it with a new object. The Vue instance proxies access to the properties on its data object.
17+
返回Vue实例正在监视的数据对象(data object)。当然你可以用新的对象去替换它。Vue实例通过代理方法访问他们的$data对象的属性。
1818

1919
### vm.$options
2020

2121
- **Type:** `Object`
2222

23-
The instantiation options used for the current Vue instance. This is useful when you want to include custom properties in the options:
23+
返回当前Vue实例所使用的实例化选项。当你想要添加自定义的属性到实例化选项里面的时候,这个属性是很有用的:
2424

2525
``` js
2626
new Vue({
@@ -34,31 +34,31 @@ new Vue({
3434
### vm.$parent
3535

3636
- **Type:** `Vue`
37-
- **Read only**
37+
- **只读**
3838

39-
The parent instance, if the current instance has one.
39+
如果当前Vue实例有父实例(parent instance),将返回父实例。
4040

4141
### vm.$root
4242

4343
- **Type:** `Vue`
44-
- **Read only**
44+
- **只读**
4545

46-
The root Vue instance of the current component tree. If the current instance has no parents this value will be itself.
46+
返回当前Vue结构树(component tree)的根Vue实例。如果当前的 `vm` 已经没有父实例的话将会返回它自己。
4747

4848
### vm.$
4949

5050
- **Type:** `Object`
51-
- **Read only**
51+
- **只读**
5252

53-
An object that holds child components that have `v-ref` registered. For more details see [v-ref](../api/directives.html#v-ref).
53+
返回一个对象,这个对象管理着有着 `v-ref` 指令的子组件。更多细节请查看 [v-ref](../api/directives.html#v-ref).
5454

5555
### vm.$$
5656

5757
- **Type:** `Object`
5858
- **Read only**
5959

60-
An object that holds DOM elements that have `v-el` registered. For more details see [v-el](../api/directives.html#v-el).
60+
返回一个对象,这个对象管理所有有着 `v-el` 指令的DOM元素。更多细节请查看 [v-el](../api/directives.html#v-el).
6161

6262
### Meta Properties
6363

64-
Instances created by `v-repeat` will also have some meta properties, e.g. `vm.$index`, `vm.$key` and `vm.$value`. For more details, see [the guide on using `v-repeat`](../guide/list.html).
64+
`v-repeat` 创建出来的实例也会拥有一些元属性(Meta properties)。例如 `vm.$index`, `vm.$key` `vm.$value` 等。更多细节请查看 [the guide on using `v-repeat`](../guide/list.html).

0 commit comments

Comments
 (0)