Skip to content

Commit

Permalink
docs(array): fix ruanyf#934
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Dec 18, 2019
1 parent 4bad480 commit 5a465dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ a3[0] === a1[0] // true
a4[0] === a1[0] // true
```

上面代码中,`a3``a4`是用两种不同方法合并而成的新数组,但是它们的成员都是对原数组成员的引用,这就是浅拷贝。如果修改了原数组的成员,会同步反映到新数组。
上面代码中,`a3``a4`是用两种不同方法合并而成的新数组,但是它们的成员都是对原数组成员的引用,这就是浅拷贝。如果修改了引用指向的值,会同步反映到新数组。

**(3)与解构赋值结合**

Expand Down

0 comments on commit 5a465dd

Please sign in to comment.