- window.location.href="/student/test?tid="+tid;
var url=location.href;
url=decodeURI(url);
// alert(url);
var str=url.split("?");
// alert(str);
var str1=str[1];
var tr1=str1.split("=");
var tid=tr1[1];
2.window.location.href="/student/test?tid="+tid+"&time="+time;
var url=location.href;
url=decodeURI(url);
// alert(url);
var num=url.indexOf("?");
var str=url.substr(num+1);
var userpwd=str.split("&");
var tid=userpwd[0].split("=")[1];
var time=userpwd[1].split("=")[1];