亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

使用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>


正在回答

2 回答

后面三個方法對窗口一頓操作,而且還有參數,你這……

0 回復 有任何疑惑可以回復我~

你把他粘到你自己的編譯器試試

搜索

復制

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

使用location.方法的時候不顯示

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號