移动端页面中,有时需要禁止用户滑动屏幕
document.body.addEventListener('touchmove', function(e) {
e.stopPropagation();//阻止默认事件
e.preventDefault();//阻止冒泡
});
document.body.addEventListener('touchmove', function(e) {
e.stopPropagation();//阻止默认事件
e.preventDefault();//阻止冒泡
});