JavaScript位移运算符(无符号) >>> 三个大于号 的使用方法详解_javascript技巧

WBOY
Release: 2016-05-16 15:07:13
Original
2164 people have browsed it

d3.bisector(accessor)是一种指定参数accessor或者比较器函数返回一个二等分对象。返回的对象有left和right两个属性。分别类似于bisectLeft和bisectRight方法。

这个方法适用于对象数组而不适用于原始的简单数组。


N>>>1就代表N的二进制右移一位,二进制右移一位就能得到中间值。

例如

10>>>1

10的二进制代码为 1010

向右移动一位后为 0101

即 5

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!