button的type属性IE默认为button类型,而谷歌等则默认为submit类型

在form表单内用到的button按钮必须要定义其type属性

<form>
    <button type="button">button</button><!--不提交form-->
    <button type="submit">button</button><!--提交form-->
    <button>button</button><!--非IE提交form,IE不提交form-->
</form>

 

相关文章:

  • 2021-12-19
  • 2021-12-04
  • 2022-12-23
  • 2021-12-19
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-01-07
  • 2021-12-19
相关资源
相似解决方案