<body >
#set( $result = ${list})
#set ($i=0)
#foreach($onlineData in ${onlineDataList})
<table border="1">
$result.get($i)
#set($i=$i+1)
<tr>
#foreach($hour in [0..23])
<th>$hour</th>
#end
</tr>
<tr>
#foreach($online in $onlineData )
<td>$online</td>
#end
</tr>
#end
</table>
</body>
注:onlineDataList是我在后台定义的list,存取多个onlineData,onlineData也是list
时间: 2024-12-15 01:58:58