查找字符串中元素出现的次数

var s="jhdoiweesdds";
var n=(s.split('s')).length-1;
document.write(n);
原文地址:https://www.cnblogs.com/xphdy/p/6295235.html