摘要: 基于Proxy // 弱引用映射表 es6 防止对象不能被回收 let toProxy = new WeakMap(); // 原对象: 代理过得对象 let toRaw = new WeakMap(); // 被代理过的对象: 原对象 // 判断为对象 function isObject(val) 阅读全文
posted @ 2019-12-02 17:48 SpongeBob~~ 阅读(490) 评论(0) 推荐(0) 编辑