摘要: 我们可以用javascript获得其中的各个部分1,window.location.href全部URl字符串(在浏览器中就是完整的地址栏)本例返回值:http://www.x2y2.com:80/fisker/post/0703/window.location.html?ver=1.0&id=6#imhere2,window.location.protocolURL的协议部分本例返回值:http:3,window.location.hostURL的主机部分本例返回值:www.x2y2.com4,window.location.portURL的端口部分假如采用默认的80端口(update 阅读全文
posted @ 2013-12-05 08:31 Seaurl 阅读(544) 评论(0) 推荐(0) 编辑