34

JS 中的 Reflect 和 Proxy

 5 years ago
source link: https://juejin.im/post/5c7e6857e51d4542194f8c6f
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Proxy和Reflect是 ES6 新增 API。 Reflect Reflect是一个内置的对象,它提供拦截 JavaScript 操作的方法。Reflect不是一个函数对象,因此它是不可构造的。Reflect的所有的方法都是静态的就和Math一样,目前它

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK