摘要: // 交换数组元素 var swapItems = function (arr, index1, index2) { arr[index1] = arr.splice(index2, 1, arr[index1])[0]; return arr; }; // 上移 var upRecord = fu 阅读全文
posted @ 2022-02-15 14:29 nate_pan 阅读(159) 评论(0) 推荐(0)