web移动端防止滑动验证右滑回到上一页
web移动端防止滑动验证右滑回到上一页有效方法
其效果是防止在进行拖拽事件的时候阻止浏览器的默认事件,然后就OK了
window.ontouchmove=function(e){
e.preventDefault && e.preventDefault();
e.returnValue=false;
e.stopPropagation && e.stopPropagation();
return false;
}