String.prototype.replaceAll = function(s1,s2){
return this.replace(new RegExp(s1,"gm"),s2);
}
转自:https://www.jb51.net/article/40269.htm
String.prototype.replaceAll = function(s1,s2){
return this.replace(new RegExp(s1,"gm"),s2);
}
转自:https://www.jb51.net/article/40269.htm