[ActionScript 3.0] AS3.0根据当天日期获取明天,后天...日期

const dayTime:Number=24*3600*1000//一天毫秒数
var date:Date = new Date();
trace("今天:"+ date.toDateString());
for(var i:int = 2;i<15;i++){
    date.setTime(date.valueOf()+dayTime);
    trace("第"+i+"天:"+ date.toDateString());
}

 

posted on 2016-02-24 16:25  晏过留痕  阅读(650)  评论(0编辑  收藏  举报