使用location.方法的时候不显示
<script type="text/javascript">
// 对象属性
// location.href :获取当前网页的 URL
document.write("<br>"+"1:"+location.href);
document.write("<br>"+"2:"+location.hostname);
document.write("<br>"+"3:"+location.host);
document.write("<br>"+"4:"+location.hash);
document.write("<br>"+"5:"+location.pathname);
document.write("<br>"+"6:"+location.protocol);
document.write("<br>"+"7:"+location.search);
// 对象方法:(为什么不显示呢)
document.write("<br>"+"12:"+location.assign());
document.write("<br>"+"13:"+location.reload());
document.write("<br>"+"14:"+location.replace());
</script>