静态页 htm传参数

//从转向过来的URL中截取参数 开始
function SplitUrl(key)
{
 var fstr=key;
 var getstr='';
var url=document.URL.toString();
 url=url.toLowerCase(); //转为小写
 var loc=url.indexOf(fstr);
 if(loc>0)
 {
  getstr=url.substring(loc+fstr.length,url.length);
  return getstr;
 }
 else
 {
   return "";
 }
}
//从转向过来的URL 中截取参数 结束
原文地址:https://www.cnblogs.com/top5/p/1665330.html