ES6: Reflect的总结 ( 附上代码 )

122 阅读1分钟

Reflect简介:

  静态类
  内部封装了一系列对对象的底层操作
  Proxy内部方法的默认实现
  提供了一套统一的用于操作对象的API

apply

apply.png

construct

construct.png

defineProperty

defineProperty.png

deleteProperty

deleteProperty.png

get

get.png

getOwnPropertyDescriptor

getOwnPropertyDescriptor.png

getPrototypeOf

getPrototypeOf.png

has

has.png

isExtensible

isExtensible.png

ownKeys

ownKeys.png

preventExtensions

preventExtensions.png

set

set.png

setPrototypeOf

setPrototypeOf.png