如何实现 a==1&&a==2&&a==3 ?

let x= 0
Object.defineProperty(window,'a',{
    get(){
        return ++x    
    } 
})
if(a==1&&a==2&&a==3)console.log('zjy')
原文地址:https://www.cnblogs.com/zhenjianyu/p/12976860.html