On the problem of tr serial number of table form

as shown in the figure: if there is such data, it is looped out and rendered into the table, and the "serial number" is required, but it is not clear how to make the number of data rows in the children array 2

.

:

Menu