转自:https://segmentfault.com/q/1010000002977656
禁止 touchstart 的默认事件
$('body').on('touchmove touchstart', function (event) {
event.preventDefault();
});
本文介绍了一种方法来阻止浏览器默认的touchstart事件行为。通过使用jQuery的on方法结合preventDefault方法,可以有效地禁用触摸屏幕时的默认操作。
转自:https://segmentfault.com/q/1010000002977656
禁止 touchstart 的默认事件
$('body').on('touchmove touchstart', function (event) {
event.preventDefault();
});

被折叠的 条评论
为什么被折叠?