<input id="keys" type="text" />
<div id="counter">你按了0个键!</div>
xxxxxxxxxx
$(window).keyup( function(event){
$("body").append( "<br>你按下并释放的按键的代码值为:[" + event.which + ']' ) ;
} );
// 触发keyup事件
// $(window).keyup( );