01 2023 档案

摘要:const p = new Proxy({ name: '路飞', age: 18}, { // 创建代理 // 查 get(target,propName){ console.log(`有人读取了p身上的${propName}`) return target[propName]; // 反射 re 阅读全文
posted @ 2023-01-31 17:03 未来的山大王 阅读(70) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示