代码部分:
效果 :
2012年12月12日》<br/>
高**》<br/>
130*******4974》<br/>
<!DOCTYPE html>
<html>
<head>
<title>Let's create a PDF!</title>
</head>
<body>
<@formatDate '2012121212'/>》<br/>
<@userNames '高天佑'/>》<br/>
<@idcardHid '130529587415248754'/>》<br/>
</div>
</body>
</html>
<#macro formatDate strDate><#if strDate?length gte 8>${strDate[0..3]}年${strDate[4..5]}月${strDate[6..7]}日<#else>${strDate}</#if></#macro>
<#macro userNames userName><#if userName?length gte 2>${userName[0.1]}**<#else>${userName}</#if></#macro>
<#macro idcardHid idcardNum><#if idcardNum?length gte 18>${idcardNum[0..2]}*******${idcardNum[14..17]}<#else>${idcardNum}</#if></#macro>
效果 :
2012年12月12日》<br/>
高**》<br/>
130*******4974》<br/>
545

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



