form表单中,如果当前表单只有一个input输入框时,单击回车会自动提交当前表单。 
解决方案 
在当前form表单中添加一个隐藏的input,

<input style="display:none" type="text"> 

参考文档https://blog.csdn.net/renminzdb/article/details/42422183

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-06-01
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2021-07-06
  • 2021-09-26
  • 2021-07-30
  • 2021-07-17
相关资源
相似解决方案