Bing图片搜索分页-无限滚动 [英] Bing image search paging - infinite scroll

查看:22
本文介绍了Bing图片搜索分页-无限滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在必应搜索引擎上搜索图片时,结果显示如下:

When you search for images on the Bing search engine, the result is displayed like this:

http://www.bing.com/images/search?q=堆栈+溢出

请注意如何继续滚动和滚动并且没有正常"分页.

Notice how you can keep scrolling and scrolling and there is not "normal" paging.

我的问题是:他们是如何做到这一点的?我可以看到发生了一些 ajax/javascript 事件,但代码不易阅读.我特别想知道他们是如何知道用户视口内何时出现空盒子"的.

My question is: How do they do this? I can see there is some ajax/javascript events happening, but the code is not easy to read. I especially would like to know how they know when an "empty box" is inside the users view port.

推荐答案

这里有一篇关于该技术的文章:

Here's an article about that technology :

使用 JavaScript 消除分页结果(ala DZone):使用 Javascript、原型和 PHP.

Eliminate paging results by using JavaScript (ala DZone) : Using Javascript, prototype and PHP.

这篇关于Bing图片搜索分页-无限滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆