a标签href带参到另一个页面接收

代码走一波

<h4><a href="stu_exam.jsp?uid=${id }" class="glyphicon glyphicon-play" target="myframe">参加考试</a></h4>

另一个页面接收参数

    function chickMe(){
    	var a = GetRequest();
    	alert("id:" +a['uid']) //获取上一个页面传过来的参数a['uid']
     	var aa = document.getElementById("aHref");
    	aa.href='PoliticsPaperTestServlet?uid='+a['uid'];
    	
    }

猜你喜欢

转载自blog.csdn.net/weixin_43364153/article/details/88798927