iScroll 库 - 到达页面末尾 - 回调还是绑定?
我试图在 iScroll 容器到达页面底部(Y 轴)时挂钩函数回调。这样我就可以按需加载更多内容 - 而不是全部 300 多个内容。
有人做过这方面的工作吗?有什么提示吗?
这是我引用的库: http://cubiq.org/iscroll-4
I'm trying to hook function callback when iScroll container reaches end of page, at the bottom end (Y-axis). So that I can load more content on demand - instead of all 300+ contents.
Has anybody worked on it? Any hints?
Here is the library I was referring to: http://cubiq.org/iscroll-4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 drmatt 提到的,您应该查看拉动刷新演示
http://cubiq。 org/dropbox/iscroll4/examples/pull-to-refresh/
您需要构建自己的逻辑,不需要用户拉动来添加更多项目。
类似于以下内容(伪代码 - 未经测试的代码):
As drmatt metioned, you should look into Pull to refresh demo
http://cubiq.org/dropbox/iscroll4/examples/pull-to-refresh/
You need to build you own logic which won't require user to pull to add more items.
Something like following (pseudo code - not tested code):