jstl中c:if中使用fn:length()函数

在jsp页面中引入c和fn
<%@ taglib uri=”http://java.sun.com/jsp/jstl/core” prefix=”c”%>
<%@ taglib uri=”http://java.sun.com/jsp/jstl/functions” prefix=”fn” %>

<li <c:if test="${fn:length(org_name)>'9'}">style="margin-bottom:20px;"</c:if>><b>党组织:</b>${org_name }</li>

长度大小要使用单引号

专业墙纸贴纸厨房用具装饰出售,本人网店经营,访问即是爱

博客对你有用记得访问下哦,增加下访问量,如有需要可以下单购买哦^_^。店铺地址https://item.taobao.com/item.htm?id=570637716145

猜你喜欢

转载自blog.csdn.net/huangbaokang/article/details/80999772