• 2026-01-11
javascript中使用replaceAll()函数实现字符替换的方法

第一次发现JavaScript中replace() 方法如果直接用str.replace("-","!") 只会替换第一个匹配的字符....

11