摘要: 统计某一字符或字符串在另一个字符串中出现的次数 function asdf(arr,d){ let count = 0; while(arr.match(d)){ arr = arr.replace(d,''); count++; } console.log(count); } let arr = 阅读全文
posted @ 2021-08-30 09:39 Mr、DIVE 阅读(401) 评论(0) 推荐(0) 编辑