ホームページ  >  に質問  >  本文

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

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

阿神阿神2748日前2581

全員に返信(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
  • キャンセル返事