function request(paras){
var url = location
var paraString = url
var paraObj = {}
for (i=
paraObj[j
}
var returnValue = paraObj[paras
if(typeof(returnValue)=="undefined"){
return "";
}else{
return returnValue;
}
}
//如你給出的地址可以這樣
var classid = request("classid");
var id = request("id");
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20521.html