{section name=customer loop=$custid}
{$smarty.section.customer.index} id: {$custid[customer]}<br>
{/section}
$smarty.section.customer.index不过是从0开始的。
{$smarty.section.customer.index} id: {$custid[customer]}<br>
{/section}
$smarty.section.customer.index不过是从0开始的。
{$smarty.section.customer.index+1} <br>
{/section}
这样就可以了
{$smarty.section.customer.iteration}
{/section}
从1开始.
{$smarty.section.customer.rownum}
{/section}
这个也可以