1. w3schools.com
    THE WORLD'S LARGEST WEB DEVELOPER SITE

    jQuery event.which Property

    ❮ jQuery Event Methods

    Example

    Return which keyboard key was pressed:

    $("input").keydown(function(event){
      $("div").html("Key: " + event.which);
    });
    Try it Yourself »

    Definition and Usage

    The event.which property returns which keyboard key or mouse button was pressed for the event.


    Syntax

    event.which

    Parameter Description
    event Required. The event parameter comes from the event binding function

    More Examples

    Return which mouse button was pressed
    Show which mouse button was pressed for the event.


    ❮ jQuery Event Methods

      1. http://www.addi1fsn.tw | http://m.addi1fsn.tw | http://wap.addi1fsn.tw | http://3g.addi1fsn.tw | http://4g.addi1fsn.tw | http://5g.addi1fsn.tw | http://mobile.addi1fsn.tw | http://vip.addi1fsn.tw | http://ios.addi1fsn.tw | http://anzhuo.addi1fsn.tw | http://0b294.addi1fsn.tw | http://45.addi1fsn.tw | http://ce6384.addi1fsn.tw | http://7494.addi1fsn.tw | http://7a4574.addi1fsn.tw | http://f063cc.addi1fsn.tw | 隔壁搬来的黑人正在播放