摘要: 网上的:String.prototype.replaceAll = function(str1, str2) { var str = this; var result = str.replace(eval("/" + str1 + "/gi"), str2); return result;}String.prototype.replaceAll = function(reallyDo, replaceWith, ignoreCase) { if (!RegExp.prototype.isPrototypeOf(reallyDo)) { return th 阅读全文
posted @ 2013-09-02 11:27 hongdada 阅读(675) 评论(0) 推荐(0)