📜  如何使用 jquery 中断滚动 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:58.633000             🧑  作者: Mango

代码示例1
$('body,html').bind('scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove', function (e) {
  if (e.which > 0 || e.type == "mousedown" || e.type == "mousewheel" || e.type == "touchmove") {
    $("html,body").stop();
  }
});