Restricted language: Javascript
For example, several activity pits will be inserted into a product list.
For example, there are two arrays A and B with variable lengths. It requires 6 A array elements and 1 B array element to be arranged like this
For example, even more arrays are arranged alternately
What I can think of is to convert these arrays into two-dimensional arrays like paging, then use a loop to combine them into an array, and finally traverse.
Is there a better way
How elegant? . .