JS一些常用的命令——获得当前的信息
2015-02-15 21:05
295 查看
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);
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);
相关文章推荐
- JS一些常用的命令——获得当前的信息
- javascript获得当前的信息的一些常用命令
- javascript获得当前的信息的一些常用命令
- linux系统一些常用的系统信息查看命令&快捷键
- linux webshell下信息收集和一些提权常用的命令
- vue.js获得当前元素的文字信息
- 获得当前操作系统的一些基本信息
- 查看win7系统激活信息时候常用的一些命令
- liunx常用命令-uname (显示当前系统信息)
- JS获得当前浏览器的地址参数信息
- linux webshell下信息收集和一些提权常用的命令
- Js获取当前日期时间及一些常用的时间操作方法
- SharePoint 2013 使用JQuery 一些记录如(SharePoint js 获得当前用户)等基本操作。
- vue.js获得当前元素的文字信息方法
- 一些不常用但确非常有用的硬件信息查询命令
- LINUX 下 一些常用的信息显示命令:
- 一些获取当前登录Windows系统用户信息的命令
- Aix/Unix/Solaris服务器信息查看的一些常用命令
- 《转》如何用js获得当前页面URL信息
- 一些常用的cvs命令