<td><table width="100%" border="0" align="center" cellpadding="0" bgcolor="black" cellspacing="1" style="TABLE-LAYOUT: fixed"> <tr bgcolor="5f8ac5">
<td width="20%" height="26" align="center">地区</td>
<td width="20%" height="26" align="center">新注册</td>
<td width="20%" height="26" align="center">新退订</td>
<td width="20%" height="26" align="center">所有注册</td>
<td height="26" align="center">所有退订</td>
</tr>
<s:iterator value="resultList" id="settle">
<tr class="firstalt1">
<td align="center" bgcolor="#EFEFEF"><s:property value="area"/></td>
<td align="center" bgcolor="#EFEFEF"> <s:property value="newReg"/></td>
<td align="center" bgcolor="#EFEFEF"><s:property value="newExit"/></td>
<td align="center" bgcolor="#EFEFEF"><s:property value="allReg"/></td>
<td height="30" align="center" bgcolor="#EFEFEF"><s:property value="allExit"/>
</tr>
</s:iterator>
</table></td>
</table>
</body>
我想在页面的最后一行显示合计比如:
新注册 新退订 所有注册 所有退订
1 2 3 5
5 6 7 8
合计: 6 8 10 13
这段代码应该怎么修改呢(用JS实现)?
<td width="20%" height="26" align="center">地区</td>
<td width="20%" height="26" align="center">新注册</td>
<td width="20%" height="26" align="center">新退订</td>
<td width="20%" height="26" align="center">所有注册</td>
<td height="26" align="center">所有退订</td>
</tr>
<s:iterator value="resultList" id="settle">
<tr class="firstalt1">
<td align="center" bgcolor="#EFEFEF"><s:property value="area"/></td>
<td align="center" bgcolor="#EFEFEF"> <s:property value="newReg"/></td>
<td align="center" bgcolor="#EFEFEF"><s:property value="newExit"/></td>
<td align="center" bgcolor="#EFEFEF"><s:property value="allReg"/></td>
<td height="30" align="center" bgcolor="#EFEFEF"><s:property value="allExit"/>
</tr>
</s:iterator>
</table></td>
</table>
</body>
我想在页面的最后一行显示合计比如:
新注册 新退订 所有注册 所有退订
1 2 3 5
5 6 7 8
合计: 6 8 10 13
这段代码应该怎么修改呢(用JS实现)?