字符串中的替换

var str = "123/1234/1231/23";

str = str.replace(///g,"-");
alert(str)
 
 
将/换成-
原文地址:https://www.cnblogs.com/nns4/p/7749863.html