// 旋转数组 function reArr(arr, move) { const moveArr = arr.splice(-move); return moveArr.concat(arr) } console.log(reArr([1,2,3,4,5,6,7], 3))