所处专题

javascript: weekOfYear 获取某天所处的一年中的周数

/**  * Get the number of week for a specific day in a year. It will return 1 to 53.  */ // 方法 1export function weekOfYear(year: number, month: number, day: number) {const startDate = new Date(year,