bodyScroll(event) {
event.preventDefault()
},
show(){
// 禁用触摸滚动页面
document.addEventListener('touchmove', this.bodyScroll, {passive: false});
},
close(){
// 恢复触摸滚动页面
document.removeEventListener('touchmove', this.bodyScroll, {passive: false});
},
微信公众号网页禁用滚动条
最新推荐文章于 2022-05-06 09:49:15 发布