mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
docs: edit Object
This commit is contained in:
parent
75dadfdda1
commit
d0865f0773
@ -1337,6 +1337,10 @@ let a = {a: 'a'};
|
||||
let b = {b: 'b'};
|
||||
let c = {c: 'c'};
|
||||
let d = mix(c).with(a, b);
|
||||
|
||||
d.c // "c"
|
||||
d.b // "b"
|
||||
d.a // "a"
|
||||
```
|
||||
|
||||
上面代码中,对象`a`和`b`被混入了对象`c`。
|
||||
|
Loading…
x
Reference in New Issue
Block a user