就是跟下面的表差不多改为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>
就是跟下面的表差不多改为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>