JavaScript 交换数组元素位置

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

posted @ 2021-07-24 18:27  徐同保  阅读(74)  评论(0)    收藏  举报