1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-26 03:32:20 +00:00

Merge pull request #320 from ataotao/patch-2

此处参数有误
This commit is contained in:
Ruan YiFeng 2017-01-13 08:58:23 -06:00 committed by GitHub
commit a2e0ba207d

View File

@ -240,7 +240,7 @@ function Greeting(name) {
const instance = new Greeting('张三');
// Reflect.construct 的写法
const instance = Reflect.construct(Greeting, '张三');
const instance = Reflect.construct(Greeting, ['张三']);
```
### Reflect.getPrototypeOf(obj)