徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
413 B

5 months ago
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