if 判断:
<#if n = 0>
...
<#elseif (my_resume.getPhotoName()?substring(0,7))!="http://">
...
<#else>
...
</#if>
String字符串操作
1.截取字符串 ${str?substring(0,7)}
2.判断是否为空,为空时 给默认值 ${my_resume.getJobFunction1_Name()?default("")?html}
List集合操作
1.判断集合是否存在,集合大小 <#if my_resume.getMy_EducationList()?exists&&(my_resume.getMy_EducationList()?size>0)></#if>
2.迭代集合
<#list my_resume.getMy_EducationList() as being>
<tr align="center" valign="middle">
<td class="fieldContent">${being.getBeginDate()}~${being.getEndDate()}</td>
<td class="fieldContent">${being.getSchoolName()}</td>
<td class="fieldContent">${being.getSpeciality()}</td>
<td class="fieldContent">${being.getDegreeName()}</td>
<td class="fieldContent">${being.getCertificate()}</td>
</tr>
</#list>
时间: 2024-10-31 22:22:02