最常用的javascript方法函数(一) 一、替换全部 String.prototype.replaceAll = function(s1, s2) { return this.replace(new RegExp(s1, "gm"), s... 尤尤 我的笔记 2017-1-1 3711 0