私信  •  关注

unigogo

unigogo 最近创建的主题
unigogo 最近回复了
16 年前
回复了 unigogo 创建的主题 » regex使用验证器传递变量值并验证jquery[duplicate]
String.prototype.replaceAll = function (replaceThis, withThis) {
   var re = new RegExp(replaceThis,"g"); 
   return this.replace(re, withThis);
};
var aa = "abab54..aba".replaceAll("\\.", "v");

用这个测试 tool