摘要:
```javascript // 对普通数组进行排序 let nums = [1, 3, 4, -4, 2, 5, 1]; nums.sort(function (a, b) { // 升序 // return a - b; //降序 return b - a; }); console.log(nums); // 对字符串数组进行排序 let arr = ["asd", "as", "a", "a 阅读全文
posted @ 2020-04-25 22:44
陈太浪
阅读(144)
评论(0)
推荐(0)

浙公网安备 33010602011771号