如何设置滚动加载到我的页面? [英] How to set scroll loading to my page?

查看:54
本文介绍了如何设置滚动加载到我的页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的主页上有100个产品....

首次加载需要更多时间,因为主页有100个产品..

i想要这样..

拳头我想在我的主页上加载20个产品..

在向下滚动时我想加载剩余的产品......

请帮我这个..

例如你可以看到这个网站..

http://www.snapdeal.com/products/men-apparel-innerwear/?q=Type%3AThermals& [<一个HREF = http://www.snapdeal.com/products/men-apparel-innerwear/?q=Type%3AThermals& target =_ blanktitle =New Window> ^ ]

i have 100 products in my home page....
at first time it will take more time to load because the home page have 100 product..
i want like this..
fist i want to load 20 products in my home page..
while scrolling down i want to load remaining products...
please help me regarding this..
for example you can see this site..
http://www.snapdeal.com/products/men-apparel-innerwear/?q=Type%3AThermals&[^]

推荐答案

添加jquery以调用另一个列在不同页面中的产品,每个页面仅包含20个产品。并使用此代码按顺序调用该页面。

Add jquery to call The other product which is listed in different page, Each page contain only 20 Products. And Call that page in order by using This code.


(document).ready(function(){
var pageNum = 1 ;
(document).ready(function() { var pageNum = 1;


' #more-product')。click(function(){
var
('#more-product').click(function() { var


这篇关于如何设置滚动加载到我的页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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