Jscrollpane - 当isAtBottom时触发一个函数 [英] Jscrollpane - Fires a function when isAtBottom

查看:102
本文介绍了Jscrollpane - 当isAtBottom时触发一个函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道当isAtBottom终于成为true时,jscrollpane触发一个函数。

I know that the jscrollpane fires a function when "isAtBottom" finally becomes true.

但是这个函数的名称是什么,如何检查isAtBottom 终于变成真的?

But what is the name of this function respectively how can I check if "isAtBottom" finally becomes true?

http:// jscrollpane .kelvinluck.com / events.html

推荐答案

jScrollPane不会触发该条件的函数,它会触发一个事件。您可以以绑定到任何其他jQuery事件的方式绑定到事件:

jScrollPane doesn't fire a function for that condition, it fires an event. You can bind to the event the same way you'd bind to any other jQuery event:

$('.your-scroll-pane').bind(
    'jsp-arrow-change',
    function(event, isAtTop, isAtBottom, isAtLeft, isAtRight) {
        // Now look at the is* parameters and do what you
        // need to do. All four of the is* parameters are
        // booleans.
    }
);

这篇关于Jscrollpane - 当isAtBottom时触发一个函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆