📜  在字符串中查找并替换它 javascript 代码示例

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

代码示例1
var name = "Pieter";
console.log(name.replace("Pi", "P"));