从数据库拿出对象数组传入前台少双引号 c标签if 所有类型判空(java)

在后台加入时加入"\""+fndRoleMenu2.getMenuId()+"\""转译即可

html C标签判空

<c:if test="${not empty username}">
                 username不为空
                  </c:if>

<c:if test="${empty username}">
                 username为空
                  </c:if>

StringUtils.isEmpty(Object str); //而org.springframework.util包下的参数是Object类,判空所有类型

数组判空

list.isEmpty(); //返回boolean类型。

猜你喜欢

转载自blog.csdn.net/qq_37612068/article/details/83148655