📜  javascript get bit - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:25.698000             🧑  作者: Mango

代码示例1
function bit_test(num, bit){
    return ((num>>bit) % 2 != 0)
}

function bit_set(num, bit){
    return num | 1<