復制代碼 代碼如下:
<form name="form1222" action="list.aspx" method="post">
<input type="hidden" id="mid" name="mid" value="">
</form>
<script>
function forwardTo(rid){
document.getElementById('mid').value=rid; //賦值給隱藏域字段
//alert(document.getElementById('mid').value);
document.form1222.submit(); //提交表單
}
</script>
<a href="#" onclick="forwardTo(55)">jsfdh</a>
<a href="#" onclick="forwardTo(080110)">校園招聘</a>