摘要: //数组排序 let arr2 = [3, 5, 1, 7, 9]; arr2.sort(); console.log(arr2); //倒叙排序1 arr2.reverse(); console.log(arr2); //倒叙排列2 arr2.sort((a,b)=>(b-a)); console 阅读全文
posted @ 2021-07-27 21:36 子夜的流星 阅读(178) 评论(0) 推荐(0)