📜  数组 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:36.838000             🧑  作者: Mango

代码示例6
special_dates = [];
special_dates.push(new Date('2021/02/12').getTime());
special_dates.push(new Date('2021/02/13').getTime());
special_dates.push(new Date('2021/02/14').getTime());

            
for (var i = 0; i < special_dates.length; i++) {
 console.log(special_dates[i]) ;
}