sort函数默认采用字符串格式排序,对数字数组排序需要传入比值函数
sort((a,b)=>{a-b})
posted on 2022-02-14 14:23 HHH_B 阅读(22) 评论(0) 编辑 收藏 举报