var date = new Date(); var tomorrow = date.setDate(new Date().getDate() + 10); //10天后的日期 console.log(date);
参考 : http://www.runoob.com/jsref/jsref-obj-date.html
http://www.runoob.com/jsref/jsref-setdate.html
var date = new Date(); var tomorrow = date.setDate(new Date().getDate() + 10); //10天后的日期 console.log(date);
参考 : http://www.runoob.com/jsref/jsref-obj-date.html
http://www.runoob.com/jsref/jsref-setdate.html