首页 > TAG信息列表 > lastMonthDay
获取当前月份的前一个月
getLastMonth(date) { var now = new Date(date) var year = now.getFullYear(); var month = now.getMonth() + 1; var day = now.getDate(); var nowMonthDay = new Date(year, month, 0).getDate(); // 当前月的总天数 if (month - 1 <= 0) { day = d