记一下location
作者:互联网
记一下window.location
- window.location.href 返回当前页面的 href (URL)
- window.location.hostname 返回 web 主机的域名
- window.location.pathname 返回当前页面的路径或文件名
- window.location.protocol 返回使用的 web 协议(http: 或 https:)
- window.location.assign 加载新文档
{
"href": "https://github.com:80/shadowsocks/shadowsocks-manager#from-npm",
"ancestorOrigins": {},
"origin": "https://github.com",
"protocol": "https:",
"host": "github.com",
"hostname": "github.com",
"port": "80",
"pathname": "/shadowsocks/shadowsocks-manager",
"search": "",
"hash": "#from-npm"
}
标签:github,一下,window,com,location,https,shadowsocks 来源: https://blog.csdn.net/zdhanunity/article/details/94726763