示例您可以尝试运行以下代码来学习如何使用javascript位与运算符 −
<!doctype html><html> <body> <script> document.write("bitwise and operator<br>"); // 7 = 00000000000000000000000000000111 // 1 = 00000000000000000000000000000001 document.write(7 & 1); </script> </body></html>
以上就是javascript位与(&)运算符是什么?的详细内容。
