Comments (5)
endless加载是本身就有的功能,和 subpagenum 没关系的,你观察demo 或者堆糖的瀑布流页面就能看出来。
关于瀑布流的分页,这个帖子已经有详尽的解答: #6
你还可以尝试调大这个参数:
// 距离底部多远提前开始加载
"lbias" : 400,
但我感觉你的问题另有原因,不介意的话给我看看你的代码吧。
from waterfall.
qq : 54180405
from waterfall.
另外,这里告知下,瀑布流会做去重的工作,在同一大页内,相同的blogid 不会出现两次,如果你的分页数据都是相同的就不会重复出现,会继续请求下一子页,直到subpagenum 用完。
demo 给的 DEBUG_DATA 是有限的,有时候会出现请求了但没有内容添加,很可能是这个原因。
from waterfall.
去重的代码在 masnunit.js 里的第333行,可以选择不去重,调试起来更方便,修改如下:
// munits 去重工作
if( !munits[id] || 1 ){
...
}
from waterfall.
巴黎贝尔,么么哒
from waterfall.
Related Issues (12)
- 怎么在不刷新页面时重建瀑布流 HOT 3
- 如何更好地自定义单元样式 HOT 1
- exrecycle 参数的增加
- 图片延时加载问题 HOT 1
- 页脚显示异常问题
- 参数使用方法 能说名一下吗 HOT 1
- Any plan for loading images more quickly? HOT 3
- 一次性抓取所有数据时不适用?
- demo links no longer available HOT 1
- 后台返回参数一定要带图片宽度和高度吗? HOT 1
- 使用瀑布流的一些疑问~ HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waterfall.