3,143
社区成员
发帖
与我相关
我的任务
分享
string rno = "";
if (Request.QueryString["pay"] != null)
{
if (Request.QueryString["pay"].ToString() == "public")
{
Session["pay"] = "public";
if (Request.QueryString["rno"] != null)
{
rno = Request.QueryString["rno"].ToString().Trim(); ;
}
else
{
rno = "123";
}
}
else
{
Session.Clear();
}
}
function getUrlArg(name) {
var reg = new RegExp("(^|&)"+name+"=([^&]*)(&|$)", "i");
var r = unescape(window.location.search).substr(1).match(reg);
if (r != null)
return unescape(r[2]);
return null;
}
这个方式可以拿多个参数