禁止IOS系统下浏览器默认拖动反弹效果
function stopScroll(touchEv) {
touchEv.preventDefault();
}
document.addEventListener( ‘touchstart’ , stopScroll , false );
document.addEventListener( ‘touchmove’ , stopScroll , false );
禁止IOS系统下浏览器默认拖动反弹效果
function stopScroll(touchEv) {
touchEv.preventDefault();
}
document.addEventListener( ‘touchstart’ , stopScroll , false );
document.addEventListener( ‘touchmove’ , stopScroll , false );