JavaScript统计字符字符出现次数的方法

万能的 for 循环

- ---- -- -
	- --- - ---------
	- --- - --
	- -- - - -- - - ------ --- -
		-------- - ------
			--- - --
		-
	-
	- ----
-

String.prototype.match()

- ------ ----- ----- - -- -
	- --- - - ------- -------
	- ----------- - ------
-