什么相当于 moment.months() 和 moment.weekdaysShort()?
moment.months()
["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
moment.weekdaysShort()
["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
到目前为止我最喜欢的是这个,没有更清洁的版本吗?
Date.getLocale().months
["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december",
"jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"]