let obj = {name:'tony'}
console.log('name' in obj);
console.log(Reflect.has(obj,'name'));
//Reflect's API is common to proxy's API
let obj = {
    name:'Chris'
}
let result = Reflect.get(obj,'name')
console.log(result);
let obj2 = {
    get he() {
        return this.name + this.pro
    }
}
let re = {
    name: 'tony'.pro: 'Henpecked'
}
let result = Reflect.get(obj2, "he", re)
console.log(result);
Copy the code