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

var s="jhdoiweesdds";
var n=(s.split('s')).length-1;
document.write(n);
posted @ 2017-01-18 00:08  红叶11  阅读(361)  评论(0编辑  收藏  举报