javascript中使用replaceall()函数实现字符替换的方法