thymleaf
Scott豆豆
这个作者很懒,什么都没留下…
展开
-
th:text属性与utext属性
1 th:text属性可对表达式或变量求值,并将结果显示在其被包含的 html 标签体内替换原有html文本文本连接:用“+”符号,若是变量表达式也可以用“|”符号e.g.若home.welcome=Welcome to our <b>fantastic</b> grocery store!用<p th:text="#{home.welcome}">&l...转载 2018-03-29 08:45:08 · 4561 阅读 · 0 评论 -
th:each属性用于迭代循环
th:each属性用于迭代循环,语法:th:each="obj,iterStat:${objList}"迭代对象可以是java.util.List,java.util.Map,数组等;iterStat称作状态变量,属性有: index:当前迭代对象的index(从0开始计算) count: 当前迭代对象的index(从1开始计算) size:被迭代对象的大小 current...转载 2018-03-29 08:46:24 · 6766 阅读 · 0 评论