< div class=“w-100 top-bg”>
<c:choose>
<c:when test="${not empty flag2}">
满足显示的内容
< h1> hahahahha < /h1>
< /c:when>
< c:otherwise>
不满足显示的内容 不加则不显示
< /c:otherwise>
< /c:choose>
< /div>
jstl表达式根据判断条件让前台显示还是不显示

最新推荐文章于 2021-08-07 10:04:23 发布