var url = location.search; var Request = new Object(); if(url.indexOf("?")!=-1){ var str = url.substr(1); //去掉?号 var strs = str.split("&"); for(var i=0;i<strs.length;i++){ Request[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]); } }
时间: 2024-10-27 06:10:53