你要去掉什么, 去掉之前的和去掉之后的, 你都列出来. var str = 'file://http:192.168.1.14:9001/Static.....pngfile:'; str = str.replace(/\/\//, ''); console.log(str);
你要去掉什么, 去掉之前的和去掉之后的, 你都列出来.