1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

Update object.md

小勘误
This commit is contained in:
UFOwl 2016-06-02 01:31:21 +08:00
parent c467637921
commit d1983dc1a2

View File

@ -924,7 +924,7 @@ x.a.b // 2
上面代码中,`x`是Rest解构赋值所在的对象拷贝了对象`obj``a`属性。`a`属性引用了一个对象修改这个对象的值会影响到Rest解构赋值对它的引用。
另外Rest解构赋不会拷贝继承自原型对象的属性。
另外Rest解构赋不会拷贝继承自原型对象的属性。
```javascript
let o1 = { a: 1 };