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 标记转换为 JSTL 三元吗
<body <c:choose> <c:when test="${wcmMode.author}">class="author"</c:when> <c:otherwise>class="${page.class}"</c:otherwise> </c:choose> >
这很简单:
<body class="${ wcmMode.author ? 'author' : page.class }">