js 扩展replaceAll

mac2022-06-30  89

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

转载于:https://www.cnblogs.com/yanjunwu/p/4015113.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)