document.addEventListener('keydown',test);
function test(e){
      var x=e.keyCode;
      if(x == 49){
         console.log("hello");
      }
}

相关文章:

  • 2021-05-22
  • 2021-04-06
  • 2021-12-09
  • 2021-10-17
  • 2021-11-28
  • 2021-07-30
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2022-02-11
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案