<c:forEach items="${b.goodMap}" var="entry" varStatus="status">
         ${entry.key}(${fn:length(entry.value)})${status.last?"":",  "}
</c:forEach>

方式2:

<c:forEach items="${b.goodMap}" var="entry" varStatus="status">
${entry.key}(${fn:length(entry.value)})
<c:choose>
    <c:when test="${status.last}">
    </c:when>
    <c:otherwise>
        ,&nbsp;
    </c:otherwise>
</c:choose>
</c:forEach>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-12-18
  • 2021-10-22
  • 2021-10-01
  • 2022-12-23
  • 2021-09-15
猜你喜欢
  • 2021-10-16
  • 2022-01-10
  • 2022-12-23
  • 2022-01-06
  • 2021-07-24
相关资源
相似解决方案