js如何将字符串中的\转成/

例如\file\cmn\20170331\229 转成 /file/cmn/20170331/229,
replace(/\/,'/')弄不清楚转义

阅读 3.5k
推荐问题