js获取地址栏参数
来源:互联网 发布:java宠物系统登入界面 编辑:程序博客网 时间:2024/05/21 12:50
页面在跳转的时候可以给他添加参数,使用?分割
<a href="location.html?id=form_home">页面跳转</a>
function GetQueryString(name)
{
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r!=null)return unescape(r[2]); return null;
}
获取那个form_home的参数:GetQueryString("id")
0 0
- js 获取地址栏参数
- js获取地址栏参数
- js 获取地址栏参数
- JS获取地址栏参数
- JS获取地址栏参数
- js获取地址栏参数
- js获取地址栏参数
- js 获取地址栏参数
- js获取地址栏参数
- js获取地址栏参数
- JS获取地址栏参数
- js 获取地址栏参数
- js获取地址栏参数
- js获取地址栏参数
- js获取地址栏参数
- js获取地址栏参数
- js获取地址栏参数
- js获取地址栏参数
- 欢迎使用CSDN-markdown编辑器
- 【转载】keil(MDK-ARM)的调试使用
- EL表达式中empty的用法 此博文包含图片(2012-02-24 17:24:00)
- ROM和RAM的故事
- Jenkins环境的搭建
- js获取地址栏参数
- OpenGL ES 2.0基本概念
- Jenkins用户权限管理
- 单片机中的推挽输出、开漏输出
- Kafka技术分享
- Jenkins节点配置
- 关于Oracle中exists和in的区别
- windows常用cmd命令大全
- 【Java 6】Invocation of init method failed