如何使用Twitter Bootstrap ScrollSpy来执行一个功能 [英] How to use Twitter Bootstrap ScrollSpy to execute a function
本文介绍了如何使用Twitter Bootstrap ScrollSpy来执行一个功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在ScrollSpy收到通知后加载更多数据。但是我没有看到如何捕获该事件并执行函数。
I would like to load more data after ScrollSpy receives notification. But I don't see how to capture that event and execute a function.
推荐答案
更新
此触发器现已推入主构建中。您可以在完整的文档中看到它。
http://twitter.github.com/bootstrap/javascript.html#scrollspy
github上的工作分支中有一个更新,用于激活激活回调。
There is an update in the working branch on github that fires an activate callback.
引用
- https://github.com/twitter/bootstrap/issues/2482
获取激活触发器后,可以调用它像这样:
Once you grab the activate trigger, you can call it like so:
$("#nav li").on('activate', function() {
//do stuff
});
这篇关于如何使用Twitter Bootstrap ScrollSpy来执行一个功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文