从Ajax加载的图像数组中选择一个片段 [英] Pick a segment from an array of Ajax-loaded images

查看:94
本文介绍了从Ajax加载的图像数组中选择一个片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从通过jquery ajax加载的图像数组中选择并显示3个中间图像

I need to pick and show the 3 middle images from an array of images loaded via jquery ajax

for (h=2;h<5;h++){
    $('#sandbox').load('./ajax/profile.html li a')[h];
        };

我希望#sandbox仅显示三个图像:数字2,3和4.以上代码不起作用

I want #sandbox to only display the three images: number 2 , 3 and 4. The code above doesn't work

推荐答案

您可以在 查看全文

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