我正在从xml格式的api获取项目的网站上工作。 我已经创建了一个php页面来解析xml api调用,并接受$ pagenumber变量来相应地获取数据。 下面是该网站的链接: http://phantom-3.com/resindex2.php?u=Car-Parts-Wholesalephp - 无限滚动加载下一个结果页面xml
此页面内了呼叫 resindex-items.php页面编号= 1 这是XML解析脚本来显示产品的结果?
我想添加无限滚动到每个滚动它抓取每个连续页面上的位置。
resindex-items.php?pagenumber=1
resindex-items.php?pagenumber=2
resindex-items.php?pagenumber=3
请原谅我的无知,我已经编写了大约1个月。
我知道我必须使用jquery和ajax来更新div。但我不知道如何实现实际的代码。
你可能需要一些javascript或jquery插件来实现它。仅供参考,请访问http://www.infinite-scroll.com/ –
这是有点过头了。这只适用于WordPress吗? – user3584013