0%

momentjs 切换语言失效

尝试下面这种写法

1
2
3
import moment from 'moment/dist/moment';
import zhCn from 'moment/dist/locale/zh-cn';
moment.locale('zh-cn',zh);