Coder Social home page Coder Social logo

Comments (5)

balibell avatar balibell commented on August 15, 2024

endless加载是本身就有的功能,和 subpagenum 没关系的,你观察demo 或者堆糖的瀑布流页面就能看出来。
关于瀑布流的分页,这个帖子已经有详尽的解答: #6

你还可以尝试调大这个参数:

// 距离底部多远提前开始加载
"lbias" : 400,

但我感觉你的问题另有原因,不介意的话给我看看你的代码吧。

from waterfall.

balibell avatar balibell commented on August 15, 2024

qq : 54180405

from waterfall.

balibell avatar balibell commented on August 15, 2024

另外,这里告知下,瀑布流会做去重的工作,在同一大页内,相同的blogid 不会出现两次,如果你的分页数据都是相同的就不会重复出现,会继续请求下一子页,直到subpagenum 用完。

demo 给的 DEBUG_DATA 是有限的,有时候会出现请求了但没有内容添加,很可能是这个原因。

from waterfall.

balibell avatar balibell commented on August 15, 2024

去重的代码在 masnunit.js 里的第333行,可以选择不去重,调试起来更方便,修改如下:

// munits 去重工作
if( !munits[id] || 1 ){
...
}

from waterfall.

xutengfei avatar xutengfei commented on August 15, 2024

巴黎贝尔,么么哒

from waterfall.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.