オンラインでいくつかのチュートリアルを行っていたので、次のように JavaScript ファイルをセットアップしました。
$(document).ready(function(){
    $(this).keydown(function(key){ });    
});
例のコードは次のようになりました。
$(document).ready(function(){
    $(document).keydown(function(key){ });    
});
このコードに違いはありますか?それは同じことをしますか?