考虑到以下几个月:
var shortMonth = 'Jan';如何使用January将其转换为长月份格式的moment.js?
moment().format('MMMM');是当前月的长月格式,但我似乎无法找到将短月转换为长月的方法。
例如,像moment().format(shortMonth,'MMMM');这样的东西不起作用。
知道怎么让它起作用吗?
发布于 2016-06-11 06:48:55
试试这个:
moment('Jan', 'MMM').format('MMMM')https://stackoverflow.com/questions/37760732
复制相似问题