htmlcssjs
<div class="button" onclick="stop()">禁止滑动</div>
<div class="button" onclick="move()">取消滑动限制</div>
    body{height: 9000px;}
var mo=function(e){e.preventDefault();};
/***禁止滑动***/
function stop(){
document.body.style.overflow='hidden';
document.addEventListener("touchmove",mo,false);//禁止页面滑动
}
/***取消滑动限制***/
function move(){
document.body.style.overflow='';//出现滚动条
document.removeEventListener("touchmove",mo,false);
}

一沙一世界,一花一天堂。君掌盛无边,刹那成永恒。