js 字符串中"/"全部替换为"-" 日期:2021-05-22 09:11:00 人气:1 js 字符串中"/"全部替换为"-" var str = "123/1234/1231/23";str = str.replace(/\//g,"-");alert(str)