标签:
String.prototype.replaceAll = function (reallyDo, replaceWith, ignoreCase) {
if (!RegExp.prototype.isPrototypeOf(reallyDo)) {
return this.replace(new RegExp(reallyDo, (ignoreCase gi g)), replaceWith);
} else {
return this.replace(reallyDo, replaceWith);
}
}
标签:
原文地址:http://www.cnblogs.com/huangf714/p/5922586.html