ES6知识点:Proxy和Reflect Proxy的基本使用 Proxy的十三种捕获器 set和get捕获器 has捕获器 deleteProperty捕获器 getPrototypeOf捕获器 setPrototypeOf捕获器 isExtensible捕获器 preventExtensions捕获器 getOwnPropertyDescriptor捕获器 defineProperty捕获器 apply捕获器 construct捕获器 ownKeys捕获器 Reflect的基本使用 Reflect和Proxy一起使用 Reflect.receiver的作用 Reflect.construct的使用 ES6新增一个代理类:Proxy。监听一个对象的相关操作,可以创建一个对应的代理对象,对原对象的操作通过代理对象来完成。 ES6新增一个对象:Reflect(反射),用来替换Object内的一些方法。 Proxy的基本使用 修改代理对象,原对象会发生对应改变 const info = { name: "fzb", age: 21 }; const proxy