mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 19:22:21 +00:00
edit docs/object
This commit is contained in:
commit
48f55f81e3
@ -115,7 +115,7 @@ function f1() {
|
||||
|
||||
```
|
||||
|
||||
另外,ES6也规定,函数的作用域为其所在的块级作用域。
|
||||
另外,ES6也规定,函数本身的作用域,在其所在的块级作用域之内。
|
||||
|
||||
```javascript
|
||||
|
||||
|
@ -36,7 +36,7 @@ target // {a:1, b:2, c:3}
|
||||
|
||||
var target = { a: 1, b: 1 };
|
||||
|
||||
var source1 = { b: 2 };
|
||||
var source1 = { b: 2, c: 2 };
|
||||
var source2 = { c: 3 };
|
||||
|
||||
Object.assign(target, source1, source2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user