let date = new Date(2020, 1, 9); let beginDate = new Date(date.getFullYear(), 0, 1); let week = Math.ceil((parseInt((date - beginDate) / (24 * 60 * 60 * 1000)) + 1 + beginDate.getDay()) / 7);
原文地址:https://www.cnblogs.com/idtjie/p/12172788.html
时间: 2024-10-30 06:14:58