var oDate = new Date;console.log("当前时间:" + oDate)oDate.setDate( oDate.getDate() + 6 );//设置为6天// oDate.setDate();//设置天时间// oDate.getDate();//获取天时间console.log("修改后时间:" + oDate)