jQuery Mobile 教程教程
jQuery Mobile scrollstop 事件
jQuery Mobile scrollstop 事件
jQuery Mobile scrollstop 事件
实例
页面滚动停止时弹出信息:
$(document).on("scrollstop",function(){
alert("停止滚动!");
});
alert("停止滚动!");
});
尝试一下 »
定义和用法
scrollstop是页面滚动停止时触发的事件。
提示: 此事件通常附加到文档。
提示: scrollstart是页面开始滚动时触发的事件。
语法
$("selector").on("scrollstop",function(event){...})
参数 | 描述 |
---|---|
function(event) | 必须。指定 scrollstop 事件触发时执行的函数。 该函数有可选的事件对象 ,事件对象可以是任何 jQuery 事件属性 (例如 event.target, event.type, 等)。更多信息请查阅 jQuery 事件参考手册 。 |
更多实例
滚动停止计数
计算 scrollstop 事件触发的次数。
事件对象
使用 event.target 属性返回 scrollstop 事件触发的DOM元素。<
jQuery Mobile scrollstop 事件 |
---|
jQuery Mobile 教程
jQuery Mobile 是用于创建移动 Web 应用的前端开发框架。jQuery Mobile 使用 HTML5 & CSS3 最小的脚本来布局网页,可以应用于智能手机与平板电脑。