针对Map<String,Map<String,String>> 的情况
ps: Velocity这玩意没法调试还真是郁闷..来来回回的试了很多次才弄对...
#foreach($other in ${otherParamMap.keySet()})//这里是遍历第一层Map
<table class="table_A">
<caption>$other</caption>//取出第一层Map的key值
<tbody>
#foreach($key in ${otherParamMap.get($other).keySet()})//这里是遍历第二层Map
<tr>
<th>$key</th>//第二层Map中的key
<td>${otherParamMap.get($other).get($key)}</td>//取出第二层Map中的值
</tr>
#end
</tbody>
</table>
#end
ps: Velocity这玩意没法调试还真是郁闷..来来回回的试了很多次才弄对...