javascript 接收页面传值
<script type="text/javascript">
<!--
var url=location.href;
if (/&/.test(url))
{
var urlarr=url.substr(url.indexOf("?")+1).split("&");
for (i=0 ;i<urlarr.length ;i++ )
{
smallurlarr=urlarr[i].split("=");
document.write(smallurlarr[0]+" 对应的值是 "+smallurlarr[1]+"<br>");
}
}else{
var urlarr=url.substr(url.indexOf("?")+1).split("=");
document.write(urlarr[0]+" 对应的值= "+urlarr[1]+"<br>");
}
document.write(url);
-->
</script>
页面要命名为index.htm哦!
<a href="index.htm?jjyy=QQ&talent=RR">跳呀</a>