Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
难道我做错了什么:
moment('Nov 29th 2012', 'MMM Do YYYY').format('DD/MM/YYYY');
我认为它应该给予29/11/2012,但它给予01/11/2012
29/11/2012
01/11/2012
这似乎有效:
moment('Nov 29th 2012', 'MMM DD YYYY').format('DD/MM/YYYY');
我不确定为什么 momentjs 需要额外的D.
D