Skip to content

Commit a13b5e4

Browse files
authored
Merge pull request #207 from vuejs/master
获取官方更新 (#511)
2 parents ad05550 + 3753e90 commit a13b5e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,8 +1336,8 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
13361336

13371337
``` html
13381338
<div v-for="(item, index) in items"></div>
1339-
<div v-for="(key, val) in object"></div>
1340-
<div v-for="(key, val, index) in object"></div>
1339+
<div v-for="(val, key) in object"></div>
1340+
<div v-for="(val, key, index) in object"></div>
13411341
```
13421342

13431343
The default behavior of `v-for` will try to patch the elements in-place without moving them. To force it to reorder elements, you need to provide an ordering hint with the `key` special attribute:

0 commit comments

Comments
 (0)