js实现上移和下移 class Utils { swapArray(arr, index1, index2) { arr[index1] = arr.splice(index2, 1, arr[ ...