2
我知道當「isAtBottom」最終成爲true時,jscrollpane會觸發一個函數。Jscrollpane - 當isAtBottom啓動一個函數
但是這個函數的名字分別是什麼?我怎樣才能檢查「isAtBottom」最終是否真實?
http://jscrollpane.kelvinluck.com/events.html
我知道當「isAtBottom」最終成爲true時,jscrollpane會觸發一個函數。Jscrollpane - 當isAtBottom啓動一個函數
但是這個函數的名字分別是什麼?我怎樣才能檢查「isAtBottom」最終是否真實?
http://jscrollpane.kelvinluck.com/events.html
JScrollPane中沒有觸發該條件的函數,它觸發一個事件。您可以綁定到該事件的方式與綁定到任何其他jQuery事件的方式相同:
$('.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.
}
);