過去や未来の日付を取得します。

getDate(a)は、{ 
				)(=新しい日付を日付1ましょう。
				=新しいDate(日付1)をdate2のみましょう。
				date2.setDate(date1.getDate()+ A)。
				" ""。" date2.getFullYear()+ +(date2.getMonth()+ 1)+ + date2.getDate()を返します。
			}、

7日の日の後:  

getDate(7)

日の7日前:  

getDate(-7)

おすすめ

転載: www.cnblogs.com/lezuw/p/11543907.html