联系官方销售客服
1835022288
028-61286886
想循环调用共享模块的内容,但是好像这个判断有些问题
<div class="111">
<div class="222">
<div class="333">
<div class="111">
<div class="222">
<div class="333">
<div class="111">
<div class="222">
<div class="333">
{module catid=$catid order=updatetime page=1}
<div class="{if $key%=2}222{else if $key%=3}333{else}111{/if}">
{/module}
<?php if ($key==3) { $key=0; }?>
<div class="{if $key==1}222{else if $key==2}333{else}111{/if}">
<?php if ($key==3) { $key++; }?>