SOURCE

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

console.log(obj)
console.log(obj.a)
console 命令行工具 X clear

                    
>
console