📜  javascript 字符串更改索引处的字符 - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:02:07.280000             🧑  作者: Mango
代码示例1
String.prototype.replaceAt=function(index, char) {
var a = this.split("");
a[index] = char;
return a.join("");
}