function maxSubSum(arr,left,right){ //console.log(right); var leftMaxSum = rightMaxSum = 0; //将这俩行代码放这里就会出错,是因为什么? // var leftMaxBorderSum = rightMaxBorderSum = 0; // var lefttemp = righttemp = 0; if(left == right){ if(arr[left] > 0){ ...