摘要: location对象location.href-- 返回或设置当前文档的URLlocation.search -- 返回URL中的查询字符串部分。例如 http://www.dreamdu.com/dreamdu.php?id=5&name=dreamdu 返回包括(?)后面的内容?id=5&name=dreamdulocation.hash -- 返回URL#后面的内容,如果没有#,返回空location.host -- 返回URL中的域名部分,例如www.dreamdu.comlocation.hostname -- 返回URL中的主域名部分,例如dreamdu.comoc 阅读全文
posted @ 2014-02-25 14:22 leejersey 阅读(4436) 评论(0) 推荐(0) 编辑
摘要: location.hash-- 返回URL#后面的内容,如果没有#,返回空hash,中文"哈希"引用网址:http://www.dreamdu.com/javascript/location.hash/兼容IE6+浏览器hash属性语法location.hash;hash属性图示hash属性说明域名中#号后面的部分通常是指定位置的链接的方式产生的,例如:ASCII编码-控制字符上面这个链接会直接定位到http://www.dreamdu.com/xhtml/ascii/文档中id为control_characters的标签处。示例document.writeln(locat 阅读全文
posted @ 2014-02-25 13:55 leejersey 阅读(6063) 评论(0) 推荐(0) 编辑