标签:com ima img let 输出 sed 图片 log seda
let date = new Date() for (let m = 1; m < 13; m++) { let num = new Date(date.getFullYear(), m, 0).getDate(); for (let i = 1; i < num + 1; i++) { //再把天数循环出来 let array = []; array[0] = i + ‘日‘; array[1] = m + ‘月‘; array[2] = 0; this.baseData.push(array) } } console.log(this.baseData) //输出每个月的天数
标签:com ima img let 输出 sed 图片 log seda
原文地址:https://www.cnblogs.com/shark1100913/p/14806688.html