js替换字符串中所有斜杠

var a = "/a/b/c";
    alert(a.replace(new RegExp("/","gm"),""));

  

posted @ 2013-11-18 10:43  so...  阅读(2868)  评论(0编辑  收藏  举报