使用jquery拦截回车事件

 

$(document).keydown(function(event) {
  if (event.keyCode == 13) {
    $('form').each(function() {
      event.preventDefault();
    });
  }
});
     

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2021-08-29
  • 2021-12-09
  • 2021-12-05
  • 2021-11-22
  • 2022-12-23
  • 2021-07-28
猜你喜欢
  • 2022-12-23
  • 2021-10-04
  • 2022-01-31
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案