JS获取几种URL地址的方法小结
来源:互联网 发布:字母logo在线设计软件 编辑:程序博客网 时间:2024/05/18 01:00
以下为JS获取几种URL地址的方法
复制代码 代码如下:
thisURL = document.URL;
thisHREF = document.location.href;
thisSLoc = self.location.href;
thisDLoc = document.location;
thisTLoc = top.location.href;
thisPLoc = parent.document.location;
thisTHost = top.location.hostname;
thisHost = location.hostname;
tmpHPage = thisHREF.split( "/" );
thisHPage = tmpHPage[ tmpHPage.length-1 ];
tmpUPage = thisURL.split( "/" );
thisUPage = tmpUPage[ tmpUPage.length-1 ];
0 0
- JS获取几种URL地址的方法小结
- JS获取URL地址的几种方法
- JS获取几种URL地址的方法
- JS获取几种URL地址的方法
- js获取IP地址的方法小结
- js获取url参数的几种方法
- js获取url参数值的几种方法
- js获取url地址方法
- js/JavaScript获取IP地址的方法小结
- 获取网页URL地址及参数等的两种方法(js和C#)
- 通过url获取图片尺寸的几种方法:JS和php
- 使用JS准确获取URL网址中参数的几种方法
- js获取URL地址
- js 获取URL地址
- js获取url地址
- js获取url地址
- js获取url地址
- PHP中打开URL地址的几种方法总结
- javascript console函数详解js开…
- firefox插件Firebug的使用教程
- FireFox使用Firebug进行断点调试图…
- PHP调试时print_r,var_dump…
- lightoj1030 - Discovering Gold【概率dp求期望】
- JS获取几种URL地址的方法小结
- FreeBSD 编辑器VI使用方法
- FreeBSD系统ee编辑器快捷键一览表
- FreeBSD的Ports系统
- PHP中ereg与preg_match和preg_matc…
- 判断汉字的正则表达式(转)
- PHP生成随机密码的4种方法及性能对…
- PHP生成随机密码的4种方法及性能对…
- FreeBSD+nginx+php+fcgi配置步骤(…