1. str.replace(/oldString/g,newString) 2. str.replace(new RegExp(oldString,"gm"),newString) 3. 增加String 对象原型方法 replaceAll