移动端禁止页面滚动

$("body").on('touchmove',function(event) { event.preventDefault(); }, false);//禁止默认事件
$(".btn-close").unbind('touchmove');//需要添加事件的元素解绑

posted @ 2016-06-30 09:58  xiaoye1990  阅读(199)  评论(0编辑  收藏  举报