Home  >  Article  >  Web Front-end  >  javascript实现捕捉键盘上按下的键_javascript技巧

javascript实现捕捉键盘上按下的键_javascript技巧

WBOY
WBOYOriginal
2016-05-16 16:01:071056browse

小小的demo,用js捕捉键盘盘上按下了那个键,然后展示出对应的code值






按下键盘上的键,文本框中会显示对应的code

以上所述就是本文的全部内容了,希望大家能够喜欢。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn