的数值,很直觉地就可以知道这个数字的各 bit 为何,因此在程式中以16进位来表示要进行位元运算(bitwise operation)的数字是非常方便的,否则就得 换算 ..
基于20个网页-相关网页
运算元会强制型转为适当的型别,然后执行位元运算并传回结果。
The operands are then coerced to the appropriate type, the bitwise operation is performed, and the result is returned.
当字串包含多个值时,传回物件的值就是以位元运算OR组合所有指定值之后产生的值。
When the string contains multiple values, the value of the returned object is the value of all specified values combined with a bitwise OR operation.
算术和串连运算子优先顺序如下节所述,其优先顺序都高于比较运算子、逻辑运算子和位元运算子。
The arithmetic and concatenation operators have the order of precedence described in the following section, and all have greater precedence than the comparison, logical, and bitwise operators.
应用推荐