📌  相关文章
📜  数组索引 javascript 代码示例

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

代码示例5
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]) ;
}