const str = 'abcdefjabcd' const newStr = str.replace('a', (a,b,c) => { console.log(a, b, c) // a 0 abcdefjabcd return 'p' }) // 使用正则替换 ...
確定! 回上一頁