Js获取当前页面URL
设置或获取对象指定的文件名或路径。
- <script>
- alert(window.location.pathname)
- </script>
设置或获取整个 URL 为字符串。
- <script>
- alert(window.location.href);
- </script>
致力于网站重构
Hello and welcome to beautiful Jun Blog.
设置或获取对象指定的文件名或路径。
设置或获取整个 URL 为字符串。
Posted on 6 八月 '08 by admin, under 其他. No Comments.
Copyright 2010 by junstudio.cn.
苏ICP备05011055号