87,907
社区成员
发帖
与我相关
我的任务
分享
var c = 0;
$(function(){
change_direction();
test();
});
function test(){
c = c + 1;
$('#test').html(c);
setTimeout('test()', 2000);
}
function change_direction(){
$(window).keydown(function(e){
key = e.keyCode;
$('#test').html(key);
});
}