8.7w+
社区成员
var start = new Date("2015-03-21".replace(/-/g,"/"));
var end = new Date("2015-04-12".replace(/-/g,"/"));
do{
show(start.getFullYear()+"-"+(start.getMonth()+1)+"-"+start.getDate());
start.setDate(start.getDate()+1);
}while(end >= start);
function show(ymd){
console.log(ymd)
}
var date = new Date();
console.info(new Date(date.getFullYear(),date.getMonth(),date.getDay()+1));
for循环加上去吧