📜  如何在javascript代码示例中从字符串中删除反斜杠

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

代码示例2
string.replace(/\\\//g, "/");

// this is also
let new_arr = arr.replace(/\\/g, "");