日期:2014-05-17 浏览次数:20550 次
Quote: 引用: var now = new Date(Date.now()); var daysOfYear = []; for (var d = new Date(2013, 10, 1); d <= now; d.setDate(d.getDate() + 1)) { daysOfYear.push(new Date(d)); } 用jquery 怎么写啊?
var now = new Date(Date.now()); var daysOfYear = []; for (var d = new Date(2013, 10, 1); d <= now; d.setDate(d.getDate() + 1)) { daysOfYear.push(new Date(d)); }