morefreeze
V2EX  ›  问与答

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

  •  
  •   morefreeze · Sep 4, 2019 · 2213 views
    This topic created in 2450 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
        1
    wei745359223  
       Sep 4, 2019   ❤️ 1
    console.table(location)
    ```
    origin"https://www.v2ex.com"
    ```
    blackeeper
        2
    blackeeper  
       Sep 4, 2019
    不管后面有没有,都可以叫 URL
    xhyzidane
        4
    xhyzidane  
       Sep 4, 2019
    源 origin
    tabris17
        5
    tabris17  
       Sep 4, 2019   ❤️ 2
    按 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   ·   Solana   ·   5071 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 09:20 · PVG 17:20 · LAX 02:20 · JFK 05:20
    ♥ Do have faith in what you're doing.