网友您好, 请在下方输入框内输入要搜索的题目:
Youarebuildingawebapplicationwithaschedulingcomponent.OntheJSP,youneedtoshowthecurrentdate,thedateofthepreviousweek,andthedateofthenextweek.Tohelpyoupresentthisinformation,youhavecreatedthefollowingELfunctionsinthe’d’namespace:name:curDate;signature:java.util.DatecurrentDate()name:addWeek;signature:java.util.DateaddWeek(java.util.Date,int)name:dateString;signature:java.util.StringgetDateString(java.util.Date)WhichELcodesnippetwillgeneratethestringforthepreviousweek?
A.${d:dateString(addWeek(curDate(),-1))}
B.${d:dateString[addWeek[curDate[],-1]]}
C.${d:dateString[d:addWeek[d:curDate[],-1]]}
D.${d:dateString(d:addWeek(d:curDate(),-1))}
参考答案