禁用浏览器滚动事件(不隐藏其滚动条)

来源:互联网 发布:java中类的实例化 编辑:程序博客网 时间:2024/05/17 04:42
function unScroll() {    var top = $(document).scrollTop();    $(document).on('scroll.unable', function(e) {      $(document).scrollTop(top);    })},function reScroll() {    $(document).off('scroll.unable');}
原创粉丝点击