📜  替换所有 js - Javascript 代码示例

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

代码示例6
let a = 'a a a a aaaa aa a a';
a.replace(/aa/g, 'bb');
// => "a a a a bbbb bb a a"