0
为什么我使用下面的代码时,我的百里香叶产生了如此大的差距。Thymeleaf餐桌如何创造差距?
BAD/WARNING
</h3>
<h3>
APPLICATION PROCESSING
</h3>
<table class="tablebad">
<tr>
<th> Status </th>
<th> HostName </th>
<th> Process Name </th>
<th> Process Count </th>
</tr>
<tr th:each="DartModel, iterStat : ${countlist}">
<td th:if ="${DartModel.Status == 'BAD'}" th:text="${DartModel.Status}"></td>
<td th:if="${DartModel.Status == 'BAD'}" th:text="${DartModel.host}"></td>
<td th:if="${DartModel.Status == 'BAD'}" th:text="${DartModel.processName}"></td>
<td th:if="${DartModel.Status == 'BAD'}" th:text="${DartModel.processCount}"></td>
</tr>
</table>
<h3>
APPLICATION PROCESSING
</h3>
<table class="tableok">
<thead>
<tr>
<th> Status </th>
<th> HostName </th>
<th> Process Name </th>
<th> Process Count </th>
</tr>
</thead>
<tbody>
<tr th:each="DartModel, iterStat : ${countlist}">
<td th:if="${DartModel.Status == 'OK'}" th:text ="${DartModel.Status}"></td>
<td th:if="${DartModel.Status == 'OK'}" th:text="${DartModel.host}"></td>
<td th:if="${DartModel.Status == 'OK'}" th:text="${DartModel.processName}"></td>
<td th:if="${DartModel.Status == 'OK'}" th:text="${DartModel.processCount}"></td>
</tr>
</tbody>
</table>
下,这将是我的所有数据与 “OK” 的状态中打印出来。我最终试图根据价值对数据进行排序。我尝试使用javascript/jquery,但它太复杂了。我找到了一种基于值拆分数据行的方法。如果数值是“坏”显示表上面反之亦然值与“好” 我是否做错了? I
哇,谢谢!,但是为什么当我把它放在标签下时会导致空行?再次感谢! – Jesse
我在回答的开头解释了它,如果你把它放在''而不是'
是否可以在div标签上使用此逻辑?如果Stats =“Critical”,则显示div – Jesse
相关问题