js替换文本字符

str.replace(new RegExp('ITAP_XPURL','g'),'123')

原文地址:https://www.cnblogs.com/chai-blogs/p/6527112.html