javascript获得当前的信息的一些常用命令
2015-02-25 00:00
477 查看
本文内容很简单,给大家总结一下javascript获得当前的信息的一些常用命令
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.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);
暂时想起来的就这些啦,后续再更新^_^
相关文章推荐
- javascript获得当前的信息的一些常用命令
- JS一些常用的命令——获得当前的信息
- JS一些常用的命令——获得当前的信息
- 一些获取当前登录Windows系统用户信息的命令
- 查看win7系统激活信息时候常用的一些命令
- 一些常用的javascript命令
- linux webshell下信息收集和一些提权常用的命令
- Aix/Unix/Solaris服务器信息查看的一些常用命令
- LINUX 下 一些常用的信息显示命令:
- 一些不常用但确非常有用的硬件信息查询命令
- linux系统一些常用的系统信息查看命令&快捷键
- linux webshell下信息收集和一些提权常用的命令
- liunx常用命令-uname (显示当前系统信息)
- 获得当前操作系统的一些基本信息
- 自己常用的一些javascript代码
- 工作中常用的一些javascript小技巧(二)
- 获得当前Windows操作系统版本的详细描述信息
- 常用的一些javascript小技巧
- 工作中常用的一些javascript小技巧(三)
- 常用的一些javascript小技巧