摘要: let arr = [1, 2, 3,4]; let a = arr.filter((item, index) => { return index > 0 && index < (arr.length - 1) }); let arr2 = [arr[arr.length-1],...a,arr[0]]; console.log(arr2) 阅读全文
posted @ 2018-08-16 14:15 明明一颗大白菜 阅读(2394) 评论(0) 推荐(0) 编辑
<-- -->