禁止鼠标滑动
methods : {
//禁止滚动
stop(){
let mo=function(e){e.preventDefault();};
document.body.style.overflow='hidden';
document.addEventListener("touchmove",mo,false);//禁止页面滑动
},
/***取消滑动限制***/
move(){
let mo=function(e){e.preventDefault();};
document.body.style.overflow='';//滚动条
document.removeEventListener("touchmove",mo,false);
}
}