js怎么替代字符串里的某个特定字符js replace(a,b)之替换字符串中所有指定字符的方法:如下所示:var str = 'abcadeacf'var str1 = str.replace('a', 'o')2023-03-05JavaScript180