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:
parent
6496d019b7
commit
4d06e3681d
@ -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`就不存在了。
|
||||
|
||||
## 属性的可枚举性
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user