function GetUrlArg(name)
{
var idx=document.location.href.indexOf(name+'=');
if (idx<=0) return null;
var argstr=document.location.href.substring(idx+name.length+1);
idx = argstr.indexOf('&');
return idx>=0?argstr.substring(0, idx):argstr;
}
var ver=GetUrlArg("ver");
网址如:www.xxxx.com/index.html?ver=123&time=212