mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
Update reflect.md
This commit is contained in:
parent
abc7310f11
commit
584ee0dc47
@ -256,7 +256,7 @@ var myObject = {
|
|||||||
Reflect.has(myObject, 'foo') // true
|
Reflect.has(myObject, 'foo') // true
|
||||||
```
|
```
|
||||||
|
|
||||||
如果第一个参数不是对象,`Reflect.has`和`in`运算符都会报错。
|
如果第一个参数不是对象,`Reflect.has`方法会报错。
|
||||||
|
|
||||||
### Reflect.deleteProperty(obj, name)
|
### Reflect.deleteProperty(obj, name)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user