摘要: 阅读全文
posted @ 2020-07-01 10:23 javascript9527 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 根据汉字首字母a z进行排序 let arry = ['周浩','李媛','王五','安妮'] arry.sort(function(a,b){ return a.localeCompare(b) }) console.log(arry)["安妮", "李媛", "王五", "周浩"] 阅读全文
posted @ 2020-07-01 10:09 javascript9527 阅读(2877) 评论(0) 推荐(1) 编辑