function getKey(event) {
            if (event.keyCode == 13) {
               alert("我是回车键");
            }
        }

 <input type="password" onkeypress="getKey(event);"/>

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-11
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案