jQuery Mobile scrollstop 事件

jQuery Mobile 事件 jQuery Mobile 事件

实例

页面滚动停止时弹出信息:

$(document).on("scrollstop",function(){
  alert("停止滚动!");
});

尝试一下 »

定义和用法

scrollstop是页面滚动停止时触发的事件。

提示: 此事件通常附加到文档。

提示:scrollstart是页面开始滚动时触发的事件。


语法

$("selector").on("scrollstop",function(event){...})

参数描述
function(event)必须。指定 scrollstop 事件触发时执行的函数。

该函数有可选的事件对象 ,事件对象可以是任何 jQuery 事件属性 (例如 event.target, event.type, 等)。更多信息请查阅 jQuery 事件参考手册


实例

更多实例

滚动停止计数
计算 scrollstop 事件触发的次数。

事件对象
使用 event.target 属性返回 scrollstop 事件触发的DOM元素。


jQuery Mobile 事件 jQuery Mobile 事件

0 个评论

要回复文章请先登录注册