jquery replace 全部替换

arrId = new RegExp(arrId, "g");

str  = str.replace(arrId, "123");

posted @ 2016-04-19 11:36  HatRed  阅读(163)  评论(0)    收藏  举报