$(‘body’).on(‘touchmove’, function (event) {event.preventDefault();});ordocument.addEventListener('touchmove', function(e){e.preventDefault()}, false);addEventListener第三个参数默认为false,在冒泡阶段触发事件。按先捕获再冒泡来看,为何在冒泡阶段阻止滑动的默认行为,会影响到body的内部子元素的滚动。
添加回答
举报
0/150
提交
取消