function sortFunc(a,b){ a-b; } var arr1 = [11,6,3,2]; arr1.sort(sortFunc); 相关文章: 2022-12-23 2022-12-23 2021-04-29 2022-12-23 2022-12-23 2022-12-23