JavaScript三倍大于 [英] JavaScript triple greater than
本文介绍了JavaScript三倍大于的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在另一个上看到了这种语法 StackOverflow帖子,并对它的作用感到好奇:
I saw this syntax on another StackOverflow post and was curious as to what it does:
var len = this.length>>> ; 0;
>>>
暗示什么?
推荐答案
这是未签名的右移运营商。有趣的是,它是按位运算符 JavaScript中的> unsigned 。
That's an unsigned right shift operator. Interestingly, it is the only bitwise operator that is unsigned in JavaScript.
>>>运算符将expression1的位向右移动
的数量expression2中指定的位。从左边填充零。
从右侧偏移的数字将被丢弃。
The >>> operator shifts the bits of expression1 right by the number of bits specified in expression2. Zeroes are filled in from the left. Digits shifted off the right are discarded.
这篇关于JavaScript三倍大于的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文