むしろ、JavaScript イベントに関する技術的な質問:
なぜ
window.onmousewheel = console.log;
Uncaught TypeError: Illegal invocationを投げる
window.onmousewheel = function (e) {console.log(e); };
期待どおりに動作し、イベントを文字列として出力しますか? console.logがに割り当てられたときにwindow.onmousewheel、ラムダ式のように 1 つのパラメーターだけで呼び出されないのはなぜですか?
サイモン
