(2) mid = left + ((right - left) >> 1) 位运算防止大数溢出 varsearch=function(nums,target){letmid=0;letleft=0;letright=nums.length-1;while(left<=right){// 位运算 + 防止大数溢出mid=left+((right-left)>>1);if(nums[mid]>target){right=mid-1}elseif(nums[mid]<target){left=mid+...