最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

javascript獲得當(dāng)前的信息的一些常用命令

 更新時間:2015年02月25日 15:31:06   投稿:hebedich  
這篇文章主要介紹了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); //這是錯的!
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);

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

相關(guān)文章

最新評論

武夷山市| 惠州市| 黔东| 新宾| 松溪县| 江西省| 德兴市| 镇坪县| 公主岭市| 富宁县| 三穗县| 平果县| 庆阳市| 慈溪市| 张家口市| 承德市| 米林县| 富蕴县| 奈曼旗| 景宁| 若尔盖县| 博白县| 鄂托克旗| 石景山区| 乡城县| 温州市| 鹤庆县| 安远县| 望谟县| 东台市| 丹棱县| 贵溪市| 德格县| 定州市| 彭阳县| 六枝特区| 东港市| 阳春市| 兴化市| 巫溪县| 兴海县|