jstl嵌套以及输出json的逗号

<script type="application/javascript">

var map = {
<c:forEach items="${configFiles}" var="c" varStatus="loop">
"${c.name}": [
<c:forEach items="${c.settingsList}" var="s" varStatus="sub">
"${s.targetIP}" <c:if test="${!sub.last}">, </c:if>
</c:forEach>
] <c:if test="${!loop.last}">, </c:if>
</c:forEach>
}
</script>

posted on 2017-05-02 18:11  无法显示此网页  阅读(335)  评论(0编辑  收藏  举报

导航