这个 JavaScript 运算符是什么意思? >>>>>
我正在浏览 MDN 上的一些文档以获取 indexOf 解决方法(link),我遇到了这行代码:
var len = t.length >>> 0;
只是好奇它做了什么,因为我从未见过它。
答案在第一条评论中。
Possible Duplicate:
What is the JavaScript >>> operator and how do you use it?
I was browsing through some documentation on MDN for the indexOf workaround (link) and I came across this line of code:
var len = t.length >>> 0;
Was just curious what that did, as I've never seen it.
Answer is in the first comment.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无符号右移。请参阅无符号右移运算符 (>>> ;)(JavaScript)
。
Unsigned right shift. See Unsigned Right Shift Operator (>>>) (JavaScript)
.