0
在条件中使用jTemplates的$P.imagesPerRow
参数有可能吗?
它为我提出了“未捕获的12”例外。
{#foreach $T as record}
{#if $T.record$index % {$P.imagesPerRow} == 0}
</tr>
<tr>
{#/if}
<td class='image-preview-cell' style='width: {$P.cellWidth}; height: {$P.cellHeight}'>
<img src='{$T.record.url}' title='{$T.record.title}' alt='{$T.record.title}'/>
</td>
{#/for}