js 替换全部字符串

var replaceAll = function (FindText, RepText) {

regExp = new RegExp(FindText, "g");

return this.replace(regExp, RepText);

}

猜你喜欢

转载自blog.csdn.net/qq_19872525/article/details/79070021