javascript獲得當(dāng)前的信息的一些常用命令
來源:易賢網(wǎng) 閱讀:1081 次 日期:2015-02-27 11:25:12
溫馨提示:易賢網(wǎng)小編為您整理了“javascript獲得當(dāng)前的信息的一些常用命令”,方便廣大網(wǎng)友查閱!

這篇文章主要介紹了javascript獲得當(dāng)前的信息的一些常用命令,需要的朋友可以參考下

本文內(nèi)容很簡單,給大家總結(jié)一下javascript獲得當(dāng)前的信息的一些常用命令

console.info("document.URL=" + document.URL);

console.info("document.location.href=" + document.location.href);

//console.info("document.base=" + document.base); //這是錯(cuò)的!

console.info("document.location=" + document.location);

console.info("self.location.href=" + self.location.href);

console.info("top.location.href=" + top.location.href);

console.info("location.hostname=" + location.hostname);

console.info("window.location.host=" + window.location.host);

console.info("window.location.pathname=" + window.location.pathname);

暫時(shí)想起來的就這些啦,后續(xù)再更新^_^

更多信息請查看IT技術(shù)專欄

更多信息請查看腳本欄目
易賢網(wǎng)手機(jī)網(wǎng)站地址:javascript獲得當(dāng)前的信息的一些常用命令
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機(jī)站點(diǎn)

版權(quán)所有:易賢網(wǎng)