'abc...'.replace(new RegExp('oldStr', 'gm'), 'newStr') 转载于:https://www.cnblogs.com/Jerrycjc/p/6307186.html