var parameterStrings = location.search.substring(1).split("&");
var parameters = {};
for(var i=0, len=parameterStrings.length;i
var pair = parameterStrings[i].split("=");
parameters[pair[0]] = pair[1];
}
方法二:
function winsx()
{
var winurl = unescape(window.location.href);
var wlp = winurl.split('?')[1];
var wincs = wlp.split('&');
for(var ii=0; ii
{
var tur = wincs[ii].split('=');
eval('this.'+tur[0]+'=''+tur[1]+'';');
}
}
var us=new winsx();
document.write(us.id);
沒有留言:
張貼留言