模拟JAVA replaceAll

来源:互联网 发布:手机dsp调音软件 编辑:程序博客网 时间:2024/06/12 00:34
 
String.prototype.replaceAll = function(s1,s2) {    return this.replace(new RegExp(s1,"gm"),s2);}

原创粉丝点击