UNPKG

xe-utils-es

Version:

JavaScript 函数库、工具类

11 lines (10 loc) 486 B
/** * 返回前几月或后几月的日期 * * @param {Date} date 日期或数字 * @param {number} offsetMonth 月(默认当前月)、前几个月、后几个月 * @param {number | string} offsetDay 获取哪天:月初(first)、月末(last)、指定天数(数值),如果为空,但超过指定月份的天数时,则默认单月最后一天 * @return {Date} */ declare function getWhatMonth(date: any, offsetMonth: any, offsetDay?: any): any; export default getWhatMonth;