<tbody> <!--/*@thymesVar id="title" type="com"*/--> <tr th:if="${title}"> <td colspan="3">没有用户数据</td> </tr> <tr th:text="${title}"> </tr> <!--/*@thymesVar id="userModel" type="com.waylau.spring.boot.blog.controller.UserController"*/--> <tr th:each=" user : ${userModel.userList}"> <td th:text="${user.id}"></td> <td th:text="${user.email}"></td> <td th:text="${user.name}"> </tr> </tbody>
</thead>
添加了注释就可以无视红线
本文展示了一个使用Thymeleaf模板引擎渲染用户数据到HTML表格的例子。通过Thymeleaf的表达式语言来动态填充表格中的每一行数据,包括用户ID、邮箱和姓名等信息。
1517

被折叠的 条评论
为什么被折叠?



