In the jsp page, on the basis of class=test, if judges that there is no problem. Adding the attributes of active dynamically can not achieve the effect of both classes. Why?

clipboard.png

clipboard.png

Mar.28,2021

try

<div class="test<c:if test=""> active</c:if>">
    ...
</div>
Menu