取得 jsp 页面上的值

http://localhost:8080/student/record.jsp?spid=1
<span id="spid" style="display:none;"> <%=request.getParameter("spid")%> </span>

<script language="JavaScript" type="text/javascript">
		var spid = $("#spid").html();
		alert(spid);
</script>






你可能感兴趣的:(jsp)