JavaScript
JavaScript Window Location
返回当前 URL 的路径名
源代码:
点击运行 »
<script> document.write(location.pathname); </script> document.write(location.pathname);
运行结果:
点击运行 »