<a>和<button>URL传参时,效果是不同的,为什么呢?

问题描述:

按钮是

<form action="xx.jsp?t_id=<%=t_id%>">

  <button type="submit">顶</button>

</form>

<a>标签是

<a href="xx.jsp?t_id=<%=t_id%>">

为什么点击后,后台接收到的数据是不同的。前者是null,后者则可以是我想要传的t_id;

 

posted @ 2016-10-04 10:37  飞出四季做的茧  阅读(443)  评论(2编辑  收藏  举报