<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;

原文地址:https://www.cnblogs.com/zhaoxingjun/p/5927394.html