摘要: proxy基本使用方式 /** * target: 表示要代理的目标,可以是object, array, function类型 * handler: 是一个对象,可以编写各种代理的方法 */ const proxy = new Proxy(target, handler); 1. 跟踪属性访问 co 阅读全文
posted @ 2022-01-18 13:52 全玉 阅读(550) 评论(0) 推荐(0) 编辑