function getQueryStringByName(name) { var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i")); if (result == null || result.length < 1) { return ""; } return result[1]; }
例如:
Response.Redirect("/Questions/Activities/ReportGeneration.aspx?Id=" + Id + "&scale_bId=" + scale_bId);
JS里面直接可以取出路径后面滴参数 getQueryStringByName("Id");