Talk is cheap. Show me your code
摘要: 问题描述: 使用 localeCompare 对一个字符串数组按名称排序 const arr = ['我', 'B', 'c', 'C', 'b', '干活', '233', '1024', '211', '吃饭']; arr.sort((a, b) => a.localeCompare(b)); 阅读全文
posted @ 2022-06-12 10:26 Wise.Wrong 阅读(550) 评论(0) 推荐(0) 编辑