从查询中的数组中获取下一组和上一组循环项

时间:2013-08-15 13:59:42

标签: jquery arrays

如何在特定时间间隔内使用next和previous来从数组中获取项目组 如下

var s=["one","two","three","four","five","six","seven","eight","nine","ten","zero"];
10秒后

var s1=["one","two","three"]

并不断更新

s1=["four","five","six"]
...
s1=["ten","zero","one"]

请建议实现上述功能。

0 个答案:

没有答案