js使用c:forEach循环java后台传过来的list
发布时间:2018-09-20 17:06,
浏览次数:2466
, 标签:
js,循环遍历
$(function() {
<c:forEach var="obj" items="${objList}" varStatus="s">
<c:set var="receiveMoneyTotal" value="0" />
<c:forEach var="obj2" items="${objList}" varStatus="s2" begin="0" end="${s.index}">
<c:set var="receiveMoneyTotal" value="${receiveMoneyTotal+obj2.receiveMoney}" />
</c:forEach>
$("#debtMoney_"+${s.index+1}).text(fmoney(${initDebtMoney+totalPrice-receiveMoneyTotal},2));
</c:forEach>
});