如题,以前见过,但忘了,谢谢!!
------解决方案--------------------
- JScript code
var Request = function(arg){ var ws = location.search.substring(1, location.search.length); var arrReturn = new Array(); var strReturn = new String(); if (ws != ""){ var val = ws.split("&"); for (i=0 ; i<val.length ; i++){ if (arg == val[i].split("=")[0]){ strReturn = val[i].split("=")[1]; break; } else{ arrReturn.push(val[i].split("=")[1]); } } } return (typeof arg == 'undefined')?arrReturn:strReturn; };
------解决方案--------------------
protected void Page_Load(object sender, EventArgs e)
{
strint ss= Request.QueryString["name"].ToString();
}
------解决方案--------------------
var str = location.search.substring(1);
var array = str.splite(=);