最近在项目中使用到了springBoot自带的Thymeleaf模版,之前也没用过,研究了一下它的语法,在此记录下
js取model的值
1 | <script th:inline="javascript"> |
页面取值
1 | <a th:text="${name}"></a> |
循环取值
1 | <tr th:each="article: ${articleList}"> |
最近在项目中使用到了springBoot自带的Thymeleaf模版,之前也没用过,研究了一下它的语法,在此记录下
js取model的值
1 | <script th:inline="javascript"> |
页面取值
1 | <a th:text="${name}"></a> |
循环取值
1 | <tr th:each="article: ${articleList}"> |