JavaScript 交换数组元素位置

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

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