1
0
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:
ruanyf 2017-06-04 12:42:27 +08:00
parent 75dadfdda1
commit d0865f0773

View File

@ -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`