码迷,mamicode.com
首页 > 其他好文 > 详细

获取地址栏参数

时间:2019-08-14 12:15:34      阅读:79      评论:0      收藏:0      [点我收藏+]

标签:cti   mat   oca   win   exp   ext   cape   turn   cap   

function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
var n = GetQueryString("CategoryID");
if(n=="1667"){
$(".sTilte h1").text("惠民政策");
}

获取地址栏参数

标签:cti   mat   oca   win   exp   ext   cape   turn   cap   

原文地址:https://www.cnblogs.com/sunnywindycloudy/p/11351091.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!