jQueryMobile的(二十) 滚屏事件(scrollstart、scrollstop)

来源:互联网 发布:美图淘宝图片 编辑:程序博客网 时间:2024/06/01 10:28

scrollstart:当屏幕滚动开始的时候触发。苹果的设备会在滚屏时冻结DOM的操作,当滚屏结束时按队列执行这些dom操作,我们现在正在研究方法让苹果的设备在滚屏开始前执行dom操作。

$(document).ready(function(){  $('body').bind('scrollstart', function(event) {    // Add scroll start code here  });});

scrollstop:滚屏结束时触发

$(document).ready(function(){  $('body').bind('scrollstop', function(event) {    // Add scroll stop code here  });});