设置Enter键触发提交事件

document.onkeydown=function()
  {
    if(window.event.keyCode==13)
    {
      var click=document.getElementById("button1").click();
    }
  }

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案