const READ = 0b1;
const CREATE=0b10;
const UPDATE=0b100;
const DELETE=0b1000;
const qx = READ|UPDATE|DELETE;
//判断时候有权限
if(qx&READ==0){
console.log("无可读权限");
}else{
console.log("有可读权限");
}
//去掉可读权限
const qx1=qx^READ;
//添加权限
if(qx&READ==0){
console.log("无可读权限");
const qx1=qx^READ;
}else{
console.log("有可读权限");
}