jquery replace 全部替换

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

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

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