摘要: // 方法1.sort() let array = [1,5,9,23,45,13,98,113,90]; function reorder1() { return array.sort((a,b)=>a-b); } console.log(reorder1()); // 方法2 冒泡排序 func 阅读全文
posted @ 2019-04-22 23:20 牛牛牛牛牛牛牛牛 阅读(322) 评论(0) 推荐(0) 编辑