0

如何在特定时间间隔内使用下一个和上一个从数组中获取一组项目,如下所示

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"]

请建议实现上述功能。

4

0 回答 0