//禁止滚动条滚动 stopScroll:function(){ document.documentElement.style.overflow='hidden'; }, //允许滚动条滚动 openScroll:function(){ document.documentElement.style.overflow='scroll'; }
弹出遮罩层时,禁止和允许页面滚动方法
最新推荐文章于 2022-03-09 17:21:00 发布
//禁止滚动条滚动 stopScroll:function(){ document.documentElement.style.overflow='hidden'; }, //允许滚动条滚动 openScroll:function(){ document.documentElement.style.overflow='scroll'; }