You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/api/index.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1336,8 +1336,8 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
1336
1336
1337
1337
```html
1338
1338
<divv-for="(item, index) in items"></div>
1339
-
<divv-for="(key, val) in object"></div>
1340
-
<divv-for="(key, val, index) in object"></div>
1339
+
<divv-for="(val, key) in object"></div>
1340
+
<divv-for="(val, key, index) in object"></div>
1341
1341
```
1342
1342
1343
1343
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