PHP--Button按钮没有设置type类型,默认会提交表单

例如:

1 <from >
2    <input type='submit' value='提交'></input>
3    <button >提交</button>
4 <from>

其中button因为没有设置type='button',所以button默认提交form表单

  

posted @ 2018-03-12 17:45  QinXiao.Shou  阅读(888)  评论(0编辑  收藏  举报