<jcms:contentloop channelid="0" classid="0" repeatnum="10" fields="[title],adddate">
<#foreach content>
编号: ${i}(
<#if test="${isodd(i)}">
奇数
<#else>
偶数
<#/if>
)<br />
编号+1:${add(i,1)}<br />
编号-1:${add(i,-1)}<br />
原标题:${field.title}<br />
标题length:${length(field.title)}<br />
标题前5个字节:${cutstring(field.title,5)}<br />
标题htmlencode:${htmlencode(field.title)}<br />
标题urlencode:${urlencode(field.title)}<br />
录入时间:${cdatestring(field.adddate,"yyyy年MM月dd日")}<br />
当前时间:${now()}<br />
<#/foreach>
</jcms:contentloop>