mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-27 12:22:21 +00:00
Update Object.assign()
This commit is contained in:
parent
b744b68e61
commit
4150797281
@ -30,7 +30,7 @@ target // {a:1, b:2, c:3}
|
||||
|
||||
```
|
||||
|
||||
注意,如果源对象与目标对象有同名属性,则前者会覆盖后者。
|
||||
注意,如果目标对象与源对象有同名属性,或多个目标对象有同名属性,则前者会覆盖后者。
|
||||
|
||||
```javascript
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user