js排序
升序const arr = [[1,2,3,[12,13,[15,17]]],[7,8,9],[4,6,10]]let i = arr.join(",").split(",")console.log(i.sort((a,b)=>{ return a - b}))// ['1', '2', '3', '4', '6', '7', '8', '9', '10', '12', '13', '15', '17']降序const arr = [[1,2,3,[12,13,[15..
原创
2022-01-11 16:49:57 ·
225 阅读 ·
0 评论