什么是“somevar>> 0"意思? [英] What does "somevar >> 0" mean?
本文介绍了什么是“somevar>> 0"意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
符号 somevar>> 0
在javascript中意味着什么?
What does the notation somevar >> 0
mean in javascript?
谢谢
推荐答案
在 a> ;> b
,>>
是一个按位运算符,它以二进制表示形式移动 a
右边的code> b (< 32)位,丢弃的位被移走。
参考: https://developer.mozilla.org/en/JavaScript/Reference/Operators/ Bitwise_Operators
In a >> b
, >>
is a bitwise operator that shifts a
in binary representation b
(< 32) bits to the right, discarding bits shifted off.
Reference: https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators
这篇关于什么是“somevar>> 0"意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文