java:
String calMax = dr.getString("calMax");
calMax =calMax.substring(0,calMax.lastIndexOf(".")+4);
mv.addObject("calMax",dr.getString("calMax"));
或jsp:
var calMax= ${calMax}.toFixed(3);
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:formatDate value="${title.TESTTIME}" pattern="yyyy-MM-dd HH:mm:ss"/>
时间: 2024-11-03 03:31:52