1.头部
<%@page isELIgnored="false" pageEncoding="UTF-8" contentType="text/html; utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set value="${pageContext.request.contextPath}" var="app"></c:set>
2.时间
<script type="text/javascript">
$(function () {
var myDate = new Date;
var year = myDate.getFullYear(); //获取当前年
var mon = myDate.getMonth() + 1; //获取当前月
var date = myDate.getDate(); //获取当前日
var t = $("<span>"+year +"年" + mon + "月" + date + "日" +"</span>")
$("#mytime").append(t)
})
</script>
........
<div id="mytime"></div></div>
........