file://\http:192.168.1.14:9001/Static.....png

file://http:192.168.1.14:9001/Static.....png
file:// 用正则或者其他方法去掉

阅读 2.8k
1 个回答

你要去掉什么, 去掉之前的和去掉之后的, 你都列出来.

var str = 'file://http:192.168.1.14:9001/Static.....pngfile:';
str = str.replace(/\/\//, '');
console.log(str);
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题