`
happy100583
  • 浏览: 122258 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论

js replaceAll

 
阅读更多

   String.prototype.replaceAll = function(s1,s2) {
     return this.replace(new RegExp(s1,"gm"),s2);
 }

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics