<table border="0" style="height: 300px">
#foreach($field in ${table.fields})
#if($foreach.count % 2 == 0)
<tr>
<td></td>
#else
<td></td>
</tr>
#end
#end
</table>
虽然很简单,但当时脑子却不好使了,举一反三,要先想明白再下手
<table border="0" style="height: 300px">
#foreach($field in ${table.fields})
#if($foreach.count % 2 == 0)
<tr>
<td></td>
#else
<td></td>
</tr>
#end
#end
</table>
虽然很简单,但当时脑子却不好使了,举一反三,要先想明白再下手