$(document).on("click",function () { window.onmousewheel = function (e) { e.preventDefault(); } });
但是,这在除Firefox之外的所有浏览器中都有效.告诉请问,如何使这段代码成为跨浏览器?
DOMMouseScroll
$(document).on( "mousewheel DOMMouseScroll",function(e){ e.preventDefault(); });