不是感叹号
是TableStatus |= 2;
是TableStatus |= 2;
解决方案 »
- extjs ProgressBar颜色怎么设置
- 关于回调,请问这两段代码有什么区别?
- javascript的符号问题
- 滚动文字问题!
- 如何判断输入框中的汉字,在统计的时候将汉字长度设为2?
- 如何使用javascript动态改变<div>的style属性?
- 有什么简便的方法让字符串变成数组?
- 在form中显示一个红色方块,当点击Button后使红色方块扩大一倍,这怎么实现??
- HTML5实现MP3上传前的预览和播放时长的获取
- 怎么用jquery 的data-lazy 直接执行效果,不要再另外写代码
- 一个类似csdn论坛的问题,不知道如果解决!
- 求一正则表达式!即在每行的开头和结尾加String,今日结帖!
请参阅
| 运算符 | 运算符优先级 | 运算符总结
要求
版本 1
对变量值与表达式值执行按位“或”,并将结果赋给该变量。result |= expression
参数
result
任何变量。
expression
任何表达式。
说明
使用该运算符和使用下面的语句是等效的: result = result | expression
|= 运算符查看 result 和 expression 的二进制表示法的值,并执行按位“或”操作。该操作的结果如下所示: 0101 (result)
1100 (expression)
----
1101 (输出)
任何时候,只要两个表达式中的其中一个的某位是 1,则结果的该位是 1。否则,结果的该位是 0。
resultAny variable.expressionAny expression.Res
Using this operator is exactly the same as specifying: result = result | expression
The |= operator looks at the binary representation of the values of result and expression and does a bitwise OR operation on them. The result of this operation behaves like this: 0101 (result)
1100 (expression)
----
1101 (output)
Any time either of the expressions has a 1 in a digit, the result has a 1 in that digit. Otherwise, the result has a 0 in that digit.