location.href.indexOf

来源:互联网 发布:彩票双色球大赢家软件 编辑:程序博客网 时间:2024/06/07 01:33
 var a = location.href.indexOf("?");   var otherkey;   if(a>0)   {    otherkey = location.href.substring(a+1,location.href.length);   }   else   {    otherkey = "";   }document.write(otherkey);例子: index.html?&time=1508924608998&isAppClient=1005       结果:&time=1508924608998&isAppClient=1005
原创粉丝点击