const str = 'abcdefjabcd' const newStr = str.replace(/a/g, 'p') // 使用正则替换全局字符 console.log(newStr) // pbcdefjpbcd const strAll ...
確定! 回上一頁