arr[ oneIndex] = [ arr[ twoIndex], arr[ twoIndex] = arr[ oneIndex]][ 0] 更简单的: let x = 1 let y = 2 [x, y] = [y, x]