How to iterate through an array by shifting first element by next one or two in each cycle?

前端 未结 0 790
天命终不由人
天命终不由人 2021-02-10 09:56

It\'s a simple Vue.js application and the code looks as following: