js对于地址栏中的URI的解析
2015-10-28 16:13
344 查看
完整URL组成部分:scheme://host:port/path?query#fragment scheme:通信协议 host:主机名(域名或IP地址) port:端口号 path:路径 query:参数(多个参数之间用'&'分割) fragment:信息片断(锚点) window.location.href 整个URI字符串 window.location.protocol (scheme:通信协议) window.location.host(主机名(域名或IP地址)) window.location.port (端口号) window.location.pathname(路径) window.location.search (参数) window.location.hash (信息片断(锚点))
相关文章推荐
- jsp乱码,xml配置方法
- javascript——defer和async的区别
- jsp+ajax实现的局部刷新较验验证码(onblur事件触发较验)
- js的小案例的实现效果学习笔记
- window.opener方法的使用 js跨域
- extjs增删改查(自己调用extjs)
- window.opener方法的使用 js跨域
- JSP中文乱码问题终极解决方案
- javascript中new操作符
- js 页面刷新location.reload和location.replace的区别小结
- js制作九九乘法表
- Extjs xtype 一览表
- JS删除数组中某一项或几项的方法汇总
- JavaScript跳转到页面某个锚点
- JavaScript跨域深入研究与解决办法(转)
- js原生继承之——原型式继承实例
- JS模板引擎
- 慕课网javascript基础学习笔记
- 拼json对象批量向后台添加数据
- JavaScript权威指南科03章 种类、值和变量(1)