次のコードはFFとChromeでは完全に動作しますが、IE8では動作しません。jQueryコードはIE 8で動作しません
$(window).keyup(function(e) {
var code = e.which
if (code == 9)
{
alert("do stuff");
cellContent();
autoDate();
}
});
このコードは、タブを認識し、cellContent()およびautoDate()関数を実行します。私はこの機能がIE8で使用されているかどうかを知るために警告を加えましたが、認識しているように見えません。
ありがとうございます!
いただき、ありがとうございます最初に基本的なデバッグを呼び出します。 'code'がIEにある値をテストしましたか? –
http://stackoverflow.com/questions/492865/jquery-keypress-event-not-firing – Richard
参照:http://stackoverflow.com/questions/1750223/javascript-keycode-values-are-undefined-in-internet -explorer-8 –