📌  相关文章
📜  从字符串 javasdript 中间删除字母 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:14.953000             🧑  作者: Mango

代码示例2
var string = "progress report tempate elementary school"
string = string.split(" ");
for (let i = 0; i < string.length ; i++) {

    for (let j = 0; j < string[i].length-1; j++) {
        if (string[i][j] === string[i][j+1]) {
            dgrg = string[i].split("").splice(j,j+1).join("")
            console.log(dgrg);
        }

    }



}
console.log(string);