Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用这个 JSTL 语句......
<c:forEach var="i" begin="1" end="5"> <c:out value="${i}"/> </c:forEach>
结果是:
1 2 3 4 5
有没有一种简单的方法可以避免输出行出现空白?我想看到这样的输出:
12345
<c:forEach var="i" begin="1" end="5"><c:out value="${i}"/></c:forEach>
或者干脆
<c:forEach var="i" begin="1" end="5">${i}</c:forEach>