请问用js如何替换一个字符串中的全部斜杠

日期:2016-11-22 15:38:51 人气:1

请问用js如何替换一个字符串中的全部斜杠

用正则表达式 var a="/a/b/c/d"; alert(a.replace(/\//g,''));
    A+
热门评论