js replaceAll

来源:互联网 发布:python numpy安装 编辑:程序博客网 时间:2024/05/21 13:54
 String.prototype.replaceAll  =  function (s1,s2){   
 return   this .replace( new  RegExp(s1, "gm" ),s2);   
原创粉丝点击