1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-28 21:32:20 +00:00

docs(object): add object.assign

This commit is contained in:
ruanyf 2017-02-28 17:45:38 +08:00
parent 6496d019b7
commit 4d06e3681d

View File

@ -582,7 +582,7 @@ processContent({ url: {port: 8000} })
// }
```
上面代码中,原意是将`url.port`改成8000`url.host`不变。实际结果却是`options.url`覆盖掉`DEFAULTS.url`,`url.host`不存在了。
上面代码原意是将`url.port`改成8000`url.host`不变。实际结果却是`options.url`覆盖掉`DEFAULTS.url`,所以`url.host`不存在了。
## 属性的可枚举性