/** * proxy 基本逻辑 */ const obj = new Proxy({}, { get(target, propKey) { console.log(target, propKey, 'proxy-get') return 35 } }) console.log(obj) console.log(obj.a)