`

js replaceAll

阅读更多
String.prototype.replaceAll  = function(s1,s2){   
return this.replace(new RegExp(s1,"gm"),s2);   
} 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics