Skip to content

Commit 28bad84

Browse files
author
roer
committed
除了 vm.$interpolate 其他基本翻译完毕,仅为基本翻译,需修正
1 parent 77aed16 commit 28bad84

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source/api/instance-methods.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ unwatch()
6565
- **keypath** `String`
6666
- **value** `*`
6767

68-
<!--Add a root level property to the Vue instance (and also its `$data`). Due to the limitations of ES5, Vue cannot detect properties directly added to or deleted from an Object, so use this method and `vm.$delete` when you need to do so. Additionally, all observed objects are augmented with these two methods too.-->
69-
<!-- 翻译存在问题 -->
70-
添加一个根等级的属性到 Vue 实例(或者也可以说是它自己的 `$data`)。由于 ES5 的限制,Vue 不可以直接监视对象中属性的增加或者删除,所以当你需要做这些的时候请使用这个方法和 `vm.$delete`。另外,所以被监视的对象也都由这两个方法增大。
68+
添加一个根等级(root level property)的属性到 Vue 实例(或者也可以说是它自己的 `$data`)。由于 ES5 的限制,Vue 不可以直接监视对象中属性的增加或者删除,所以当你需要做这些的时候请使用这个方法和 `vm.$delete`。另外,所以被监视的对象也都由这两个方法增大。
7169

7270
### vm.$delete( keypath )
7371

@@ -118,16 +116,14 @@ vm.$log('item') // logs vm.item
118116
- **event** `String`
119117
- **args...** *optional*
120118

121-
Dispatch an event from the current vm that propagates all the way up to its `$root`. If a callback returns `false`, it will stop the propagation at its owner instance.
122119
从当前的 vm 处理一个事件,这个 vm 一直传播到它的 `$root` 。如果其中一个回调返回了 `false` ,那么在它自己的实例中停止传播。
123120

124121
### vm.$broadcast( event, [args...] )
125122

126123
- **event** `String`
127124
- **args...** *optional*
128125

129-
Emit an event to all children vms of the current vm, which gets further broadcasted to their children all the way down. If a callback returns `false`, its owner instance will not broadcast the event any further.
130-
为当前 vm 的所有子 vm 注册该事件,这个 vm 一直传播到很远到他的子vm们。当一个回调返回 `false` 。如果一个回调返回了 `false`,那么它的所有者实例就不会广播这个事件了。
126+
为当前 vm 的所有子 vm 注册该事件,这个 vm 会一直传播到到他的子vm。当一个回调返回 `false` 。当一个回调返回了 `false`,那么它的所有者实例就不会广播这个事件了。
131127

132128
### vm.$emit( event, [args...] )
133129

0 commit comments

Comments
 (0)