代码笔记 (opens new window)
let array = [9, 4, 3, 2, 1, 8, 3, 6, 7, 0, 1]; function sortNumber(a, b){ return a - b } console.log(array); console.log(array.sort(sortNumber));
← 数组去重