Why did you judge that the attribute returned true when you have intercepted the attribute retrieval through Proxy?

let obj = {

            time: "2017-7-20",
            name: "set",
            _r: 123
        };

let daili = new Proxy (obj, {

                has(target,key){
                if (key==="name"){
                    return target[key];
                }else{
                    return false;
                }
            }
        });    

console.log ("name" in obj,"time" in obj); / / true true should be followed by false

Mar.28,2021

console.log('name' in daili,'time' in daili);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45dfe-438a5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45dfe-438a5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?