<script type="text/javascript"> thisURL = document.URL; thisHREF = document.location.href; thisSLoc = self.location.href; thisDLoc = document.location; strwrite = " th...
2019-12-24技术教程JavaScript教程,js,js教程,获取当前路径设置或获取对象指定的“文件名”或路径。<script>alert(window.location.pathname)</script> 设置或获取整个 URL 为字符串。<script>alert(window.location.href); </script> 设置或...
2019-12-24技术教程JavaScript教程,js,js教程,获取当前路径