js获取url(window.location)
2017-08-23 14:17
295 查看
window.location 属性 描述 hash 设置或获取 href 属性中在井号“#”后面的分段。 host 设置或获取 location 或 URL 的 hostname 和 port 号码。 hostname 设置或获取 location 或 URL 的主机名称部分。 href 设置或获取整个 URL 为字符串。 pathname 设置或获取对象指定的文件名或路径。 port 设置或获取与 URL 关联的端口号码。 protocol 设置或获取 URL 的协议部分。 search 设置或获取 href 属性中跟在问号后面的部分。 如window.location.href 设置或获取整个 URL 为字符串。
相关文章推荐
- js获取url传递参数,js获取url?号后面的参数window.location
- [JS]window.location获取url各项参数详解
- js获取url传递参数,js获取url?号后面的参数window.location
- [JS]window.location获取url各项参数详解
- js获取url传递参数,js获取url?号后面的参数window.location
- js获取当前URL:window.location.href
- Arison [JS]window.location获取url各项参数详解
- js获取当前页的URL与window.location.href简单方法
- js 获取当前页面的url等内容 window.location系列
- [转]window.location方法获取URL及window.location.assign(url)和replace(url)区别
- js操作url(window.location)
- window.location获取URL中各部分
- window.location方法获取URL
- JS:window.location.host =ASP.NET:Request.Url.Authority
- 获取url参数window.location.search.substr(1).match(reg)
- JS控制静态页面之间传递参数获取参数并应用(window.location)
- location和window.open的小结--(获取url里的各种玩意以及页面)
- 【JavaScript】获取当前页的URL与window.location.href
- 【JavaScript】获取当前页的URL与window.location.href
- window.location 的常用属性(获取当前页面的url)