小小方法用起来方便,简洁.

function Request(name){
var source = location.search;
var reg = new RegExp("(^|\?|&)"+ name +"=([^&]*)(\s|&|$)", "i");
if (reg.test(source))
return RegExp.$2;
return "";}
 
 
function QueryString(item){
     var sValue=location.search.match(new RegExp("[\?\&]"+item+"=([^\&]*)(\&?)","i"))
     return sValue?sValue[1]:sValue
}

function QueryString(item){
     var sValue=location.search.match(new RegExp("[\?\&]"+item+"=([^\&]*)(\&?)","i"))
     return sValue?sValue[1]:sValue
}

 

相关文章:

  • 2021-10-16
  • 2022-01-31
  • 2021-10-07
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2021-07-23
  • 2021-12-16
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案