Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在特定时间间隔内使用下一个和上一个从数组中获取一组项目,如下所示
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"]
请建议实现上述功能。