摘要: Array.prototype.sort((a, b)=> a.localeCompare(b)) ### 举个例子 ['b', 'a', 'd', 'c'].sort((a, b) => a.localeCompare(b)) 阅读全文
posted @ 2024-05-22 14:25 HuangBingQuan 阅读(2) 评论(0) 推荐(0) 编辑