We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js 存放数字是依照 IEEE 754 标准、
IEEE 754 = 1(符号位) + 11(指数位) + 52(小数位)
52 包含一位隐藏位 1,实际位 53 位
计算用户是否具备某一个权限做或操作完之后等于权限值
比如: 判断是否可写
7 & 3(...0011) = ....0111 & ....0011 = ....0011 = 3
1 & 3(...0011) = ....0001 & ....0011 = ....0001 = 1
15 & 3(...0011) = ....1111 & ....0011 = ....0011 = 3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
js 存放数字是依照 IEEE 754 标准、
IEEE 754 = 1(符号位) + 11(指数位) + 52(小数位)
52 包含一位隐藏位 1,实际位 53 位
javascript 的位运算
位运算计算权限
计算用户是否具备某一个权限做或操作完之后等于权限值
比如: 判断是否可写
7 & 3(...0011) = ....0111 & ....0011 = ....0011 = 3
1 & 3(...0011) = ....0001 & ....0011 = ....0001 = 1
15 & 3(...0011) = ....1111 & ....0011 = ....0011 = 3
The text was updated successfully, but these errors were encountered: