代码:
(function(){
document.onmousewheel = function(){
if(event.ctrlKey)
return false;
}
})();
这样写的是js的自动加载,相当于jquey里面的$(function(){ .... });
代码:
(function(){
document.onmousewheel = function(){
if(event.ctrlKey)
return false;
}
})();
这样写的是js的自动加载,相当于jquey里面的$(function(){ .... });