摘要: //统计数组内重复元素的个数 let arr = ["leyi", "leyi", "leyi2", "leyi2", "leyi3", "leyi4", "leyi5"]; let statInfo = []; arr=arr.sort();//这一步很重要 for (let i = 0; i < 阅读全文
posted @ 2018-07-14 00:01 韭菜茄子 阅读(453) 评论(0) 推荐(0) 编辑