禁止微信上下滑动

function m(e){e.preventDefault()}

document.addEventListener('touchmove', m, false);   绑定事件 禁止滑动

document.removeEventListener('touchmove', m, false);  解除事件  可以滑动

原文地址:https://www.cnblogs.com/nns4/p/7477662.html