jquery微信浏览器阻止页面拖动

jquery微信浏览器阻止页面拖动
<pre>
function bodyScroll(event) {
event.preventDefault();
}

document.body.addEventListener('touchmove', bodyScroll, false);

/*有些页面可能会影响到里面的触摸事件 可以采取如下方法解除*/
document.body.removeEventListener('touchmove', bodyScroll, false);
</pre>

原文地址:https://www.cnblogs.com/newmiracle/p/11856334.html