1 2 3 4 5 |
// http://stackoverflow.com/questions/881085/count-the-number-of-occurences-of-a-character-in-a-string-in-javascript function countstring(s,o) { return s.split(o).length-1; } |
1 2 3 4 5 |
// http://stackoverflow.com/questions/881085/count-the-number-of-occurences-of-a-character-in-a-string-in-javascript function countstring(s,o) { return s.split(o).length-1; } |