Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你为什么要写x = x >>> 0?
x = x >>> 0
根据Mozilla a >>> b:
a >>> b
将二进制表示中的 a 向右移动 b 位,丢弃移出的位,并从左侧移入零。
并且移位 0 位似乎没有那么有用。