摘要: 升序降序排序函数sortNumber const arr1 = [6,1,2,3,4]; function sortNumber(a,b){ return b-a; } arr1.sort(sortNumber); console.log(arr1) // [6, 4, 3, 2, 1] 按照fla 阅读全文
posted @ 2021-06-17 09:54 vaelcy 阅读(518) 评论(0) 推荐(0)