移动端禁止屏幕滚动 移动端禁止屏幕滚动 //禁止屏幕滚动 $("body").attr({ "ontouchmove": "event.preventDefault()" }); //解除禁止 $("body").removeAttr("ontouchmove");