摘要:
let str = 'abccccccdddww' function countNums(parentStr, childStr) { return parentStr.split(childStr).length - 1 } console.log(countNums(str, 'cc'))//3 阅读全文
posted @ 2022-03-28 21:12
GameCat
阅读(287)
评论(0)
推荐(0)