就是跟下面的表差不多改为Html中用ul和li实现
到处搜搜不到怎么写,大家帮帮忙谢谢
<table class="table" id="goodslist">
<tr th:each="goods,goodsStat : ${goodsList}">
<td th:text="${goods.goodsName}"></td>
<td th:text="${goods.goodsPrice}"></td>
</tr>
</table>
<ul th:each="goods,goodsStat : ${goodsList}">
<li th:text="${goods.goodsName}"></li>
<li th:text="${goods.goodsPrice}"></li>
</ul>
把数据存到数组里,循环push上去
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!