Function getWeekInfo

  • 获取星期信息

    Parameters

    • n: string | number

    Returns {
        abbr: string;
        id: number;
        key: string;
        name: string;
        others: string;
    } | {
        abbr: string;
        id: number;
        key: string;
        name: string;
        others: string;
    }[]

    getWeekInfo(); /// WEEKS_INFO
    getWeekInfo('0'); /// WEEKS_INFO
    getWeekInfo('ALL'); /// WEEKS_INFO
    getWeekInfo('all'); /// WEEKS_INFO
    getWeekInfo('unknown'); /// WEEKS_INFO
    getWeekInfo(1); /// 星期一相关信息
    getWeekInfo(8); /// WEEKS_INFO