// 提取特殊字元串長度(scrstr 源字元串 armstr 特殊字元) getStrCount: function(scrstr, armstr) { var count = 0; while (scrstr.indexOf(armstr) >= 1) { scrstr = scrstr.rep... ...
// 提取特殊字元串長度(scrstr 源字元串 armstr 特殊字元) getStrCount: function(scrstr, armstr) { var count = 0; while (scrstr.indexOf(armstr) >= 1) { scrstr = scrstr.replace(armstr, "") count++; } return count; }