阻止页面滚动事件

    //阻止整个页面滚动事件

    $("body").on("touchmove",function(event){

        event.preventDefault;
    }, false);
    //然后点击取消或者确定时再取消body上的绑定
    $("body").off("touchmove");
posted @ 2018-04-16 16:45  执码挥战  阅读(327)  评论(0)    收藏  举报