使用location.方法的時(shí)候不顯示
?<script?type="text/javascript">
//?對(duì)象屬性
????//?location.href??:獲取當(dāng)前網(wǎng)頁(yè)的?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);
//??對(duì)象方法:(為什么不顯示呢)
?????document.write("<br>"+"12:"+location.assign());
?????document.write("<br>"+"13:"+location.reload());
?????document.write("<br>"+"14:"+location.replace());
?</script>
2022-05-06
后面三個(gè)方法對(duì)窗口一頓操作,而且還有參數(shù),你這……
2021-09-23
你把他粘到你自己的編譯器試試
搜索
復(fù)制