>  Q&A  >  본문

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

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

阿神阿神2748일 전2590

모든 응답(1)나는 대답할 것이다

  • 大家讲道理

    大家讲道理2017-04-11 12:16:44

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

    var str = 'file://http:192.168.1.14:9001/Static.....pngfile:';
    str = str.replace(/\/\//, '');
    console.log(str);

    회신하다
    0
  • 취소회신하다