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