位运算

1.除以2并取整

var x = 21
let right = x >> 1;        // 除以2并取整,缩小一下遍历的范围
console.log('right=', right) //10
原文地址:https://www.cnblogs.com/liuyinlei/p/14250045.html