当然了,var dt = "<%=request.getAttribute("nowdate")%>";
dt是字符串变量,没有dt.getMonth()方法。