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

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

  

原文地址:https://www.cnblogs.com/fdxjava/p/14271282.html