获取浏览器地址、端口、协议、参数等
1、document.location.href
获取网址包含协议
2、document.location.host
获取网址不包含协议
1、document.location.search
获取?后面参数(包括问号?)
1、document.location.pathname
获取文件路径
1、document.location.protocal
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。