thymeleafDemo
<p th:text="${#strings.concat(accountFinishInfoVo.firstDepartmentName+' - '+accountFinishInfoVo.departmentName)}"> strings.concat函数:字符串拼接
|
<img th:src="${#strings.isEmpty(accountFinishInfoVo.profilePicLarge)} ? 'http://fimg.xx.com/images/xx/xx-user-default.png' : ${accountFinishInfoVo.profilePicLarge}" strings.isEmpty:字符串判空
|
<a th:href="@{'/user/diagnose/manuscript/go'(mid=${userVo.mid},userId=${userVo.id})}" >个人信息</a>跳转 |
<div th:each="data:${pager.data}" th:remove="tag"> <div th:switch="${data.itemType}" th:remove="tag"> th:switch判断
|
<div th:substituteby="/daily/me_common::me_common(${data})"></div>
th:substituteby="/daily/me_common::me_common(${data})"
组件引用 对应下面代码的
th:fragment="me_common(data)"
<html th:remove="tag" xmlns:th="http://www.thymeleaf.org"> |
<p class="sub-title" th:if="${task==null and userVo.staffId==staffInfo.id or userVo.continueWrite==true}">添加方式: <small th:text="${data.addWayStr}">手动添加</small> |