<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script> let a = 10; let b = 8; let c = a&b; //00000000 00000000 00000000 00001010; //00000000 00000000 00000000 00001000; // 按位与 都真取真 //00000000 00000000 00000000 00001000; </script> </body> </html>