document.documentElement.style.overflow='hidden';//即:设置html元素的overflow属性hidden
document.body.style.overflow='hidden'//移动端的可以这样设置
这样设置之后,页面上的滚动条就消失了,页面就无法滚动了!
document.documentElement.style.overflow='hidden';//即:设置html元素的overflow属性hidden
document.body.style.overflow='hidden'//移动端的可以这样设置
这样设置之后,页面上的滚动条就消失了,页面就无法滚动了!