https://google.com:443
也就是说截止到 path 开始前的这部分,包括端口号甚至用户名密码,用于变量命名
1
wei745359223 2019-09-04 15:29:49 +08:00 1
|
2
blackeeper 2019-09-04 15:34:56 +08:00
不管后面有没有,都可以叫 URL
|
3
tomczhen 2019-09-04 15:35:43 +08:00
|
4
xhyzidane 2019-09-04 15:38:28 +08:00
源 origin
|
5
tabris17 2019-09-04 15:40:30 +08:00 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: "" |