Skip to content

Commit 78566c2

Browse files
author
tianting
committed
modified
1 parent a57ebfd commit 78566c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ Vue包含一组观察数组的突变方法,所以它们也将会触发视图
363363

364364
你打开控制台,然后用前面例子的 `items` 数组调用突变方法:`example1.items.push({ measage: 'Baz' })`
365365

366-
### 替换数组
366+
### 重塑数组
367367

368-
突变方法,顾名思义,改变原始数组的称呼。相比之下,也有非突然的方法,例如:`filter()``concat()``slice()`这些不会突变原始数组,但是会一直返回一个新的数组。当用非突变方法时,你刚好用一个新的组数去替换一个旧的数组
368+
突变方法,顾名思义,改变原始数组的称呼。相比之下,也有不改变原组数的方法,例如:`filter()``concat()``slice()`这些不会改变原始数组,但总是返回一个新的数组。当用不改变原数组的方法时,你只需替换旧数组用新的
369369

370370
``` js
371371
example1.items = example1.items.filter(function (item) {

0 commit comments

Comments
 (0)