摘要: 排序 定义一个数组// var arr = [4, 7, 6, 12, 3, 102, 2];// // 默认是升序// // arr.sort().reverse();// arr.sort(function (a, b) {// if(a > b) {// return 1;// } else 阅读全文
posted @ 2018-04-01 19:57 温柔一刀Trend 阅读(113) 评论(0) 推荐(0) 编辑