<!DOCTYPE html>
<html>
<body>
<h2>JavaScript</h2>
<h3>window.location 对象</h3>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"网页路径是:" + window.location.pathname;
</script>
</body>
</html>
你的E-mail:
网页地址:
描述: