通过字符串的分割,返回一个数组,利用数组的长度来判断出现的频率

const _searchStrIndexOf = (str, target) => {
            // 补全代码
	return str.split(target).length - 1
}