let val = 3; let result = val&0x02; console.log(result>=0); if(3){ console.log('this is true'); } if(val&0x02){ console.log('这也是成功的') }