Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

摘要: [ 10, 12, 14, 16, 8 ].sort() // 输出 :[10, 12, 14, 16, 8] 查看 sort源码 :不传参的话会逐个比较 ASCLL 值,而数字8的ASCLL值大于1的ASCLL值。修改:[ 10, 12, 14, 16, 8 ].sort((a,b)=> a-b) 阅读全文
posted @ 2021-07-07 12:52 365/24/60 阅读(36) 评论(0) 推荐(0) 编辑