如果是button请将button的类型改为type="button"   因为浏览器会认为button按钮默认类型是submit   会提交数据从而导致整个页面刷新

在ie浏览器中按钮的type默认是button   在其他浏览器(如火狐,chrome)则是submit

加上type="button"完美解决
————————————————
https://blog.csdn.net/qq_41413619/article/details/88690645

相关文章:

  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案