标签:val before com 结果 dig uri null 问题 tag
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
el表达式:判断是否为空
${smokeBrief.total_cases eq null?"null":smokeBrief.total_cases}
${empty testEventList?"null":testEventList.get(0).start_time}
函数对结果取整:截取小数点前的数字
${fn:substringBefore((smokeBrief.total_time/24), ".")}d ${smokeBrief.total_time%24}h
标签对结果转换为整数:
<fmt:formatNumber type="number" value="${uiFunctionBrief.pass_rate*uiFunctionBrief.total_cases*(0.01)}" maxFractionDigits="0"/>
标签:val before com 结果 dig uri null 问题 tag
原文地址:https://www.cnblogs.com/itzlg/p/11290767.html