标签:get 字符串长度 crs nbsp color rms ++ 字符 var
// 提取特殊字符串长度(scrstr 源字符串 armstr 特殊字符) getStrCount: function(scrstr, armstr) { var count = 0; while (scrstr.indexOf(armstr) >= 1) { scrstr = scrstr.replace(armstr, "") count++; } return count; }
标签:get 字符串长度 crs nbsp color rms ++ 字符 var
原文地址:http://www.cnblogs.com/Byme/p/7988954.html