📌  相关文章
📜  替换字符串中的字符 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:35.707000             🧑  作者: Mango

代码示例3
let string = 'soandso, my name is soandso';

let replaced = string.replace(/soandso/gi, 'Dylan');

console.log(replaced); //Dylan, my name is Dylan