foreach

forech标签

属性
name:表示数据源;
item:表示循环变量;

<foreach name="list" item="vo" > 
   {$vo.name} {$key}
</foreach>

更改属性key的变量名:

<foreach name="list" item="vo" key="k"> 
   {$vo.name} {$k}
</foreach>
© ThinkCMF all right reserved,powered by Gitbook最后文件编辑时间: 2016-03-09 14:01:15

results matching ""

    No results matching ""