JavaScript 中的按位与运算符 (&) 是什么?
javascriptweb developmentfront end technology
它对其整数参数的每个位执行布尔与运算。
示例
您可以尝试运行以下代码来了解如何使用按位与运算符 −
<html>
<body>
<script>
var a = 2; // 位表示 10
var b = 3; // 位表示 11
document.write("(a & b) => ");
result = (a & b);
document.write(result);
</script>
</body>
</html>
相关文章
有用资源
javascript 参考教程 - 该教程包含有关 javascript 的更多信息:https://www.cainiaomax.com/javascript/

