morefreeze
V2EX  ›  问与答

schema + domain 这部分通常叫什么?

  •  
  •   morefreeze · Sep 4, 2019 · 2756 views
    This topic created in 2624 days ago, the information mentioned may be changed or developed.

    比如 http://baidu.com

    https://google.com:443 也就是说截止到 path 开始前的这部分,包括端口号甚至用户名密码,用于变量命名

    5 replies  •  2019-09-04 15:40:30 +08:00
    wei745359223
    wei745359223
    Sep 4, 2019❤️1
    1
    console.table(location)
    ```
    origin"https://www.v2ex.com"
    ```
    blackeeper
    blackeeper
    Sep 4, 2019
    2
    不管后面有没有,都可以叫 URL
    xhyzidane
    xhyzidane
    Sep 4, 2019
    4
    源 origin
    tabris17
    tabris17
    Sep 4, 2019❤️2
    5
    按 F12,Console 输入 location,回车:

    hash: "#reply4"
    host: "v2ex.com"
    hostname: "v2ex.com"
    href: "https://v2ex.com/t/597876#reply4"
    origin: "https://v2ex.com"
    pathname: "/t/597876"
    port: ""
    protocol: "https:"
    search: ""
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2351 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 00:19 · PVG 08:19 · LAX 16:19 · JFK 19:19
    ♥ Do have faith in what you're doing.