点击数组中某元素,移动到头部

Array.unshift(Array.splice(index,1)[0]);

  

posted @ 2021-01-13 11:59  小白咚  阅读(208)  评论(0)    收藏  举报