【发布时间】:2015-12-20 19:27:26
【问题描述】:
我有一个表,其中的一些行需要每 x 秒更新一次。 一行不断要求更新,直到收到某个值。
我已经阅读了有关片段的内容,但我需要更具体的示例。
我想学习如何在不使用 javascript/AJAX 的情况下实现这种行为(我已经知道它们)。
<table>
<tr> <!--If simulation.completed=false, this row need to be updated-->
<td th:text="${simulation.completed}"></td> <!--(true or false)-->
<td .... </td> <td>....
</tr>
<tr> <!--If simulation.completed=false, this row need to be updated-->
<td th:text="${simulation.completed}"></td> <!--(true or false)-->
<td .... </td> <td>....
</tr>
<tr> <!--If simulation completed=false, this row need to be updated-->
<td th:text="${simulation.completed}"></td> <!--(true or false)-->
<td .... </td> <td>....
</tr>
</table>
【问题讨论】:
标签: spring spring-mvc thymeleaf