移动端禁止滑动的js处理方式

it2022-05-05  126

下面是禁止移动端滑动事件的方式,慎用  document.querySelector('body').addEventListener('touchmove', function (ev) {             event.preventDefault();   });

转载于:https://www.cnblogs.com/songdongdong/p/6739701.html

相关资源:手机移动端禁用滚动条,手机禁止滚动js

最新回复(0)