I would like to detect whether the user has pressed Enter using jQuery.
(我想检测用户是否使用jQuery按Enter键 。)
How is this possible?
(这怎么可能?)
Does it require a plugin? (它需要插件吗?)
EDIT: It looks like I need to use the keypress()
method.
(编辑:看起来我需要使用keypress()
方法。)
I wanted to know if anyone knows if there are browser issues with that command - like are there any browser compatibility issues I should know about?
(我想知道是否有人知道该命令是否存在浏览器问题 - 比如我是否应该了解任何浏览器兼容性问题?)
ask by chris translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…