摘要: function swap(array, i, j) { const [item] = array.splice(i, 1) // get item and remove this item from array array.splice(j, 0, item) } 阅读全文
posted @ 2022-07-10 21:14 Zhentiw 阅读(22) 评论(0) 推荐(0) 编辑