输出其中的第5~15条记录:
<volist name="list" id="vo" offset="5" length='10'>
{$vo.name}
</volist>输出偶数记录:
<volist name="list" id="vo" mod="2" >
<eq name="mod" value="1">
{$vo.name}
</eq>
</volist>为空的时候输出提示:
<volist name="list" id="vo" empty="暂时没有数据" >
{$vo.id}|{$vo.name}
</volist>输出循环变量:
<volist name="list" id="vo" key="k" >
{$k}.{$vo.name}
</volist>如果没有指定key属性的话,默认使用循环变量i,例如:
<volist name="list" id="vo" >
{$i}.{$vo.name}
</volist>输出数组键名:
{volist name="$messageData" id="vo" key="k"}
键名:{$key}
值:{$vo}
{/volist}