This commit is contained in:
毛财君
2023-07-06 17:37:33 +08:00
parent 06f26608af
commit 197b38ca6f
816 changed files with 236883 additions and 989 deletions

View File

@@ -0,0 +1,14 @@
var helperCreateGetDateWeek = require('./helperCreateGetDateWeek')
/**
* 返回某个月的第几周
*
* @param {Date} date 日期或数字
* @param {Number} firstDay 周视图的起始天,默认星期一
* @return {Number}
*/
var getMonthWeek = helperCreateGetDateWeek(function (targetDate) {
return new Date(targetDate.getFullYear(), targetDate.getMonth(), 1)
})
module.exports = getMonthWeek