先贴我的代码
<tr th:each=" title : ${titles}">
<th th:text="${title}"></th>
</tr>
titles 是一个数组。。
效果图如下
生成的 html 代码
<tr>
<th>订单</th>
</tr>
<tr>
<th>店名</th>
</tr>
<tr>
<th>电话</th>
</tr>
<tr>
<th>地址</th>
</tr>
但是我要的效果是想要 一个 tr 中包含 4个 th
<tr>
<th>订单</th>
<th>店名</th>
<th>电话</th>
<th>地址</th>
</tr>
请问如何做到。。。。