Java的api的说法: getHeader public java.lang.String getHeader(java.lang.String name) Return the first value of the specified header, if any; otherwise, return null 返回指定标头的第一个值(如果有的话):否则返回null. Specified by: getHeader in interface javax.servlet.http.HttpSe
例如获取2020年5月一共有多少个星期二,一共跨了多少个星期 public class MainTest { public static void main(String[] args) throws ParseException { SimpleDateFormat sp = new SimpleDateFormat("yyyyMM"); SimpleDateFormat sp2 = new SimpleDateFormat("yyyy年MM月"); String