js中的replaceAll

来源:互联网 发布:淘宝店突然流量变0 编辑:程序博客网 时间:2024/06/05 20:23
String.prototype.replaceAll = function (AFindText,ARepText) {
raRegExp = new RegExp(AFindText,"g");
return this.replace(raRegExp,ARepText);
}
0 0
原创粉丝点击