that

English [w?t?] US [hw?t?,w?t?]

pron. どれ; どの 1 つ; どれか 1 つ; それは、前に述べたものを指します

adj.どれ;どれか

jquery which事件 構(gòu)文

関數(shù): that 屬性は、どのキーまたはボタンが押されたかを示します。

構(gòu)文: event.whic

パラメータ:

<rt id="kaisw"></rt>

パラメータ説明
イベント 必須。チェックするイベントを指定します。イベント パラメーターはイベント バインディング関數(shù)から取得されます。 ######################

jquery which事件 例

<html>
<head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("input").keydown(function(event){ 
    $("div").html("Key: " + event.which);
  });
});
</script>
</head>
<body>

請(qǐng)隨意鍵入一些字符:<input type="text" />
<p>當(dāng)您在上面的框中鍵入文本時(shí),下面的 div 會(huì)顯示鍵位序號(hào)。</p>
<div />

</body>
</html>
インスタンスの実行 ?

[インスタンスの実行] ボタンをクリックしてオンライン インスタンスを表示します