Calendar c = Calendar getInstance(); int year = c get(Calendar YEAR); int month = c get(Calendar MONTH); int day= c get(Calendar DAY); 这三行加在<% %>里面 调用时用<%= year %><%= month%><%= day%>
Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
int month = c.get(Calendar.MONTH);
int day= c.get(Calendar.DAY);

这三行加在<% %>里面

调用时用<%= year %><%= month%><%= day%>

关键字标签:

上一篇:request.getParameter()取值为null的解决方法
下一篇:Java Web项目前端规范(采用命名空间使js深度解耦合)