如果使用jqueryUI的button标签时没有指定type类型,则IE8会识别为submit类型,点击之后自动提交form
 
如<button onclick="addDown();">测试</button>,就相当于了<button onclick="addDown();" type="submit">测试</button>
 
如果你想要的不是提交功能,只是一个button,最好加上type="button"

相关文章:

  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-11-03
  • 2021-07-22
猜你喜欢
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案