<c:set var="nowDate" value="<%=System.currentTimeMillis()%>"></c:set> <c:choose> <c:when test="${bizAuxiliaryMaterialsSupplierRel.effectiveDateMsec-nowDate gt 0}"> <a href="${ctx}/auxiliarymaterialssupplier/bizAuxiliaryMaterialsSupplierRel/delete?id=${bizAuxiliaryMaterialsSupplierRel.id}" onclick="return confirmx('确认要删除该辅料对应供应商吗?', this.href)">删除</a> </c:when> </c:choose>
这里用的是标签库
bizAuxiliaryMaterialsSupplierRel.effectiveDateMsec这个是传过来的时间,要注意的是这个时间值要是毫秒值,不然会报错