chenlongsheng

没有点击事件的button标签点击刷新页面:

 

理由:button在form表单中,并且button标签未定义type类型,此时type默认为submit;

 

解决方法: 在button标签上添加     type="button" 或者将button移除form表单之外

分类:

技术点:

相关文章:

  • 2021-10-14
  • 2021-12-19
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-12-19
  • 2021-12-19
猜你喜欢
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
  • 2021-06-25
  • 2021-12-19
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案