twitter-bootstrap 如何在使用引导程序滚动页面时加载内容?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21477168/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 19:54:17  来源:igfitidea点击:

how to load content while scrolling the page using bootstrap?

twitter-bootstraptwitter-bootstrap-3

提问by user2574980

I am going to use bootstrap in my project. Is it possible to load the contents when the user scrolls down the page like facebook? Is there any feature present in bootstrap or do we have to customize it.Thanks in advance.

我将在我的项目中使用引导程序。当用户像 facebook 一样向下滚动页面时,是否可以加载内容?引导程序中是否存在任何功能,或者我们是否必须对其进行自定义。提前致谢。

回答by emptywalls

You are looking for something like Waypoints to create the infinite scroll:

您正在寻找类似 Waypoints 的东西来创建无限滚动:

http://imakewebthings.com/jquery-waypoints/

http://imakewebthings.com/jquery-waypoints/

Waypoints is a fantastic plugin, and it even has a built in shortcut for infinite scroll.

Waypoints 是一个很棒的插件,它甚至有一个内置的无限滚动快捷方式。

回答by Mannekenpix

It is call infinite scrolland this is not a feature of Bootstrap. You need a jQuery plugin by example.

它被称为无限滚动,这不是 Bootstrap 的功能。例如,您需要一个 jQuery 插件。