V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
junwind
V2EX  ›  程序员

问一下大家啊,这种是如何访问到本地的?

  •  
  •   junwind · 2021-10-08 16:36:55 +08:00 · 1761 次点击
    这是一个创建于 923 天前的主题,其中的信息可能已经有所发展或是发生改变。

    本地环境是虚拟机 centos 中

    外网 ip.html?url=http://本地 ip:9999

    如何访问到本地的资源呢

    2 条回复    2021-10-08 17:10:35 +08:00
    AoEiuV020
        1
    AoEiuV020  
       2021-10-08 16:47:15 +08:00
    前端 js 解析处理的,
    coolan
        2
    coolan  
       2021-10-08 17:10:35 +08:00
    前端拿到 url 以后,向服务器发起请求,由服务器代理访问这个 url 。具体直接看 html 里对于 url 参数的处理就行了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2484 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 16:10 · PVG 00:10 · LAX 09:10 · JFK 12:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.