var
a =
"/a/b/c"
;
alert(a.replace(
new
RegExp(
"/"
,
"gm"
),
""
));
//换成 -
var
a =
"/a/b/c"
;
alert(a.replace(
new
RegExp(
"/"
,
"gm"
),
"-"
));
2021-11-28 12:32:46
var
a =
"/a/b/c"
;
alert(a.replace(
new
RegExp(
"/"
,
"gm"
),
""
));
var
a =
"/a/b/c"
;
alert(a.replace(
new
RegExp(
"/"
,
"gm"
),
"-"
));