/** 数组置顶 */
export function arrRoofPlacement(arr, index) {
  arr.unshift(arr[index]);
  arr.splice(index + 1, 1);
  return arr;
}
posted on 2020-03-14 17:20  假装新手  阅读(184)  评论(0编辑  收藏  举报