effect
the data sent back is as follows
let arr = [
{id:1,name:"1",value:100},
{id:2,name:"2",value:1},
{id:3,name:"3",value:0},
{id:4,name:"4",value:15},
{id:5,name:"5",value:120},
{id:6,name:"6",value:13},
{id:7,name:"7",value:1021},
{id:8,name:"8",value:11},
{id:9,name:"9",value:102},
{id:10,name:"10",value:110},
{id:11,name:"11",value:180},
{id:12,name:"12",value:190},
{id:13,name:"13",value:104},
{id:14,name:"14",value:102},
{id:15,name:"15",value:110},
{id:16,name:"16",value:210},
{id:17,name:"17",value:310}
];
5 elements in a row, and the unit and load at the beginning of each row are fixed
my html structure is
<nav>
<div class="zhanwei"></div>
<div class="div_ulall">
<ul class="ul_one">
<li></li>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
<ul class="ul_one">
<li class="li_bottom"></li>
<li class="li_bottom">55</li>
<li class="li_bottom">55</li>
<li class="li_bottom">66</li>
<li class="li_bottom">656</li>
<li class="li_bottom">666</li>
</ul>
</div>
</nav>
what I want to implement is one line for every five elements, and then the extra one is displayed on the next line (sometimes it is not a multiple of 5, it may be 17, 3, etc.)