摘要: 1.str.replace(/abc/g,"1233") 2.str.replace(new RegExp("abc","gm"),"1233") 阅读全文