function noScroll(flag){
var mo=function(e){e.preventDefault()};
flag ? stop(mo) : move(mo);
}
/***Prohibit sliding***/
function stop(mo){
document.body.style.overflow='hidden';
document.addEventListener("touchmove",mo,false);//Prohibit page sliding
}
/***Cancel the sliding limit***/
function move(mo){
document.body.style.overflow='';//The scroll bar appears
document.addEventListener('touchmove', function (event) {
window.event. returnValue = true;
}, false);
}