复制代码 代码如下:
//create the date
var mydate = new date();
//add a day to the date
mydate.setdate(mydate.getdate() + 1);
//add a week
mydate.setdate(mydate.getdate() + 7);
//add a month
mydate.setmonth(mydate.getmonth() + 1);
//add a year
mydate.setyear(mydate.getyear() + 1);
您可能感兴趣的文章:
如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!
网友评论