禁用滚动条并保持显示
1 2 3 4 5 6 7 8 9 10 11 12 | /**禁用滚动条**/ function unableScroll() { var top = $(document).scrollTop(); $(document).on('scroll.unable',function (e) { $(document).scrollTop(top); }) } /**启用滚动条**/ function enableScroll() { $(document).unbind("scroll.unable"); } |
最后修订于 2020-10-18 01:18:24