使用纯 Javascript 从字符串中删除所有斜杠

remove_slashes.js
"foo/bar/gas".replace(/\//g, "") // foobargas

Check out similar posts by category: Javascript