如何用js得到当前页面的url信息方法(JS获取当前网址信息)
<br />设置或获取对象指定的文件名或路径。<br /><script><br />alert(window.location.pathname)<br /></script><br />设置或获取整个 URL 为字符串。<br /><script><br />alert(window.location.href);<br /></script><br />设置或获取与 URL 关联的端口号码。<br /><script><br />alert(window.location.port)<br /></s
转载
2011-05-05 11:16:00 ·
1890 阅读 ·
0 评论