js使用c:forEach循环java后台传过来的list

发布时间:2018-09-20 05:05  浏览次数:452


$(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>

});


标签

归档

排行榜

支付宝搜索“559315787”,天天领红包