循环结构,在循环输出中变量不用加$符号
实例1.for
(table border='1' width='500') (for start='0' end='10' name='j' step='-2' comparison='gt')//lt正序step是步调值加2 / gt倒序输出step是步调值减2 (tr)(td){$j}(/td)(td)abc(/td)(/tr) (/for) (/table)
实例2.volist
(volist name='list' id='v')//循环多维数组,v代表当前数组 {$v.username}(br/) (/volist)
实例3.foreach
(foreach name='list' item='v' key='k') {$k}-------{$v}(br/) (/foreach)