JavaScript 交换数组元素位置

;[value[index - 1], value[index]] = [value[index], value[index - 1]]

原文地址:https://www.cnblogs.com/xutongbao/p/15264327.html