jQuery event.which 属性
jQuery 教程
· 2019-03-11 08:13:29
实例
返回哪个键盘键被按下:
$("input").keydown(function(event){
$("div").html("Key: " + event.which);
});
$("div").html("Key: " + event.which);
});
定义和用法
event.which 属性返回指定事件上哪个键盘键或鼠标按钮被按下。
语法
event.which
| 参数 | 描述 |
|---|---|
| event | 必需。event 参数来自事件绑定函数。 |
点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html
APIs
Daniel Jacobson、Greg Brail、Dan Woods / O'Reilly Media / 2011-12-24 / USD 24.99
Many of the highest traffic sites get more than half of their traffic not through the browser but through the APIs they have created. Salesforce.com (more than 50%) and Twitter (more than 75% fall int......一起来看看 《APIs》 这本书的介绍吧!