网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

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))}


参考答案

更多 “ 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))} ” 相关考题