stop = e => {
e.preventDefault();
e.stopPropagation();
};
禁用
document.body.addEventListener('touchmove', this.stop, { passive: false });
启动
document.body.removeEventListener('touchmove', this.stop);
stop = e => {
e.preventDefault();
e.stopPropagation();
};
document.body.addEventListener('touchmove', this.stop, { passive: false });
document.body.removeEventListener('touchmove', this.stop);
本文标题:禁止(启用)页面滚动
本文链接:https://www.haomeiwen.com/subject/unfmnktx.html
网友评论