mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-27 20:32:21 +00:00
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
This commit is contained in:
commit
e198cd9ec9
@ -240,7 +240,7 @@ function Greeting(name) {
|
|||||||
const instance = new Greeting('张三');
|
const instance = new Greeting('张三');
|
||||||
|
|
||||||
// Reflect.construct 的写法
|
// Reflect.construct 的写法
|
||||||
const instance = Reflect.construct(Greeting, '张三');
|
const instance = Reflect.construct(Greeting, ['张三']);
|
||||||
```
|
```
|
||||||
|
|
||||||
### Reflect.getPrototypeOf(obj)
|
### Reflect.getPrototypeOf(obj)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user