(编辑:jimmy 日期: 2024/12/29 浏览:2)
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%>