cam*_*aca 50
这将是明天的日期:
var a = new Date((new Date()).valueOf() + 1000*3600*24);
Run Code Online (Sandbox Code Playgroud)
Tom*_* Tu 39
您必须使用Date对象的getDate()和setDate()方法分别获取和设置日期的日期值.
var date = new Date();
date.setDate(date.getDate() + 1);
Run Code Online (Sandbox Code Playgroud)
有关使用日期的更多信息,请查看MDC Date对象参考
Pab*_*ruz 10
试试这个:
//create the date
var myDate = new Date();
//add a day to the date
myDate.setDate(myDate.getDate() + 1);
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
70855 次 |
最近记录: |