日期:2014-05-16  浏览次数:20299 次

js中判断字符存在几次

str2.split(str1).length-1

?

感觉思路很好 mark一下