{section name=customer loop=$custid}
{$smarty.section.customer.index} id: {$custid[customer]}<br>
{/section}
$smarty.section.customer.index不过是从0开始的。

解决方案 »

  1.   

    {section name=customer loop=$custid} 
    {$smarty.section.customer.index+1} <br> 
    {/section} 
    这样就可以了
      

  2.   

    {section name=customer loop=$custid}
    {$smarty.section.customer.iteration}
    {/section}
    从1开始.
     
     
      

  3.   

    {section name=customer loop=$custid} 
    {$smarty.section.customer.rownum} 
    {/section}
    这个也可以