使用正则表达式替换字符串中的所有匹配项 String.prototype.replaceAll = function(s1,s2){ return this.replace(new RegExp(s1,"gm"),s2);}
String.prototype.replaceAll = function(s1,s2){ return this.replace(new RegExp(s1,"gm"),s2); }
String.prototype.replaceAll = function(s1,s2){ return this.replace(new RegExp(s1,"gm"),s2); }