📅  最后修改于: 2022-03-11 15:02:11.806000             🧑  作者: Mango
function arraymove(arr, fromIndex, toIndex) {
var element = arr[fromIndex];
arr.splice(fromIndex, 1);
arr.splice(toIndex, 0, element);
}