开:
document.body.setAttribute("onmousewheel", 'return false;')
document.body.setAttribute("onmouseover", 'return false;')
关:
document.body.setAttribute("onmousewheel", '');
document.body.setAttribute("onmouseover", ')
css版写法:
window.onscroll = function a (e) {console.log(e);document.body.setAttribute("style", "position:fixed")}
window.onscroll = function a (e) {console.log(e);document.body.removeAttribute("style")}