code: function filterMonth(arr, year, disabledDateObj) {
    const minDateTime = new Date(year, 0, 1).getTime();
    const maxDateTime = new Date(year, 11, 31).getTime();
    const monthRangeArr = getDateRangeArr(disabledDateObj, minDateTime, maxDateTime);
    const monthArr = [];
    monthRangeArr.forEach((item) => {
      let { start, end } = item;
      start = new Date(start);
      end = new Date(end);
  
      const monthStart = start.getMonth();
      const monthEnd = end.getMonth();
      const dayStart = start.getDate();
      const dayEnd = new Date(end.getTime() + 86400000).getDate();
      if (dayStart === 1) {
        if (dayEnd === 1) {
          for (let i = monthStart; i <= monthEnd; i++) {
            monthArr.push(i);
          }
        } else {
          for (let i = monthStart; i < monthEnd; i++) {
            monthArr.push(i);
          }
        }
      }
      if (dayEnd === 1) {
        for (let i = monthStart + 1; i <= monthEnd; i++) {
          monthArr.push(i);
        }
      } else {
        for (let i = monthStart + 1; i < monthEnd; i++) {
          monthArr.push(i);
        }
      }
    });
    return arr.filter((item) => {
      const month = item.value;
      return monthArr.indexOf(month) === -1;
    });
  }
docs: 过滤月份
  @param { Array } arr
  @param { Number } year
  @param { object } disabledDateObj