我知道当“isAtBottom”最终变为 true 时,jscrollpane 会触发一个函数。
但是这个函数的名称分别是什么,我如何检查“isAtBottom”最终是否为真?
最佳答案
jScrollPane 不会针对该条件触发函数,而是触发事件。您可以像绑定(bind)到任何其他 jQuery 事件一样绑定(bind)到该事件:
$('.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.
}
);
关于jquery - Jscrollpane - 当 isAtBottom 时触发函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6369901/