JQuery replace 替换全部 j_will · 2015-12-31 16:06 · Web前端 · Markdown re = new RegExp("{thisclassid}", "g"); str = str.replace(re, "123");