联系官方销售客服
QQ1835022299
028-61286886
请问怎么让$key从1开始循环
{list action=category module=share pid=0} {$t.name} {list action=category module=share pid=$t.id return=t2}
{$t2.name}
以上代码是双LIST循环,
在此段代码中,使用$key++则,项目从0循环至10
如果我使用$key+1,则全部是1
请问是什么原因,应该怎么做到昂我在子循环中的key从1开始呢?
{$t2.name}