javascript - 这个运算符是什么 : &=

标签 javascript operators bit-manipulation

谁能解释一下运算符 &= 的作用是什么?

我进行了搜索,但只得到了 &= 的结果。

最佳答案

a &= b;

相同
a = a & b;

& 是“按位与运算符”,搜索它。

关于javascript - 这个运算符是什么 : &=,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8910623/

相关文章:

javascript - 为什么 Airbnb 风格指南说不鼓励依赖函数名称推断?

javascript - 如何从 Chrome 开发工具中删除 "REMOVE"按钮?

operators - RxJava 超时而不发出错误?

PHP/MYSQL : less than or equal to 50 is displaying records in the hundreds?

javascript - 将 div 中的内容填充到多个垂直列中

javascript - 根据本地存储中的值更改类属性

python - 列表中的运算符在打印时仍显示引号(Python 3.1)

python - 如何思考 Python 的负数按位运算?

java - Java 中 "x==7"到 1(真)或 0(假)的快速恒定时间评估

C++ - 按位不是 uchar 产生 int