2020
09-29
09-29
JavaScript实现移动端弹窗后禁止滚动
代码如下computed:{popupStatus(){returnthis.SendCircle_visible||this.generateInfo_visible||this.isPosterShow;}},methods:{stopTouch(e){e.preventDefault();},},watch:{popupStatus(val){letpreD=this.stopTouch;letoptions={passive:false,//强调默认事件capture:true,//早点禁止该事件};if(val){document.body.style.overflow='hidden';...
继续阅读 >