日期:2014-05-16 浏览次数:20452 次
function getString(){
var url = location.search;
var therequest = new Object();
if(url.indexOf("?")!= -1){
var str = url.substr(1);
strs = str.split("&");
for(var i = 0;i<strs.length,i++){
therequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return therequest;
}