JS中的Replace()传入函数时的用法详解 replace方法的语法是:stringObj.replace(rgExp,replaceText)其中stringObj是字符串(string),reExp可以是正 replaceall函数