微信中禁用上下滑动,解除禁用上下滑动

1.禁用:

$('body').on('touchmove', function (event) { event.preventDefault(); });

 

2.解除禁用: 

document.addEventListener('touchmove', function (e) {
 e.returnValue = true;
}, false);
posted @ 2017-11-23 11:44  mali0932  阅读(845)  评论(0编辑  收藏  举报