标签:prot col reg ret eal turn function his new
一、代码
String.prototype.replaceAll = function (s1, s2) { return this.replace(new RegExp(s1, ‘gm‘), s2) };
Js 之封装replaceAll
原文地址:https://www.cnblogs.com/yang-2018/p/12869082.html