js 移动端阻止下拉滑动、刷新

阻止默认的处理方式(阻止下拉滑动的效果),阻止在移动端下拉刷新的效果

    document.body.addEventListener('touchmove', function (e) {
        e.preventDefault(); 
    }, {passive: false});

猜你喜欢

转载自blog.csdn.net/qq_40015157/article/details/114139469