Home  >  Article  >  Web Front-end  >  js gets variables_form effects

js gets variables_form effects

WBOY
WBOYOriginal
2016-05-16 19:27:06742browse

function querystring(qs){
s=location.href;
s=s.replace("?","?&").split("&");
re="";
for(i=1;iif(s[i].indexOf(qs "=")==0){
re=s[i].replace (qs "=","");
}
}
return re;
}
Very good to get the passed variables

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn