js阻止移动端页面滚动的两种方法
时间:2021-08-03 08:58:04|栏目:JavaScript代码|点击: 次
方法一:
$(document).on('touchmove',function(e){
e.preventDefault();
})
方法二:
position: fixed;top:0;left: 0;




方法一:
$(document).on('touchmove',function(e){
e.preventDefault();
})
方法二:
position: fixed;top:0;left: 0;

