日期:2014-05-16  浏览次数:20355 次

页面传参问题
window.location.href="tubulation!list.page?lpID="+lpID+"&backurl="+window.location.href;
请问在tubulation!list页面如何获取lpID

------解决方案--------------------
string strIpID=Request["IpID"];
------解决方案--------------------
服务器还是客户端js获取?

var s=location.search;//查询参数字符串
var Request={};
//初始化Request对象
function InitRequest(){
  var m,reg=/([a-z\d]+)=([^&]+)/gi;
  s=s==''?'':s.substring(1);
  while(m=reg.exec(s))Request[m[1].toLowerCase()]=m[2];//添加项进入hash对象
}

InitRequest();
alert(Request["lpID"])