如何实现Ant Design中moment对象与字符串的相互转换?
- 内容介绍
- 文章标签
- 相关推荐
本文共计394个文字,预计阅读时间需要2分钟。
将伪原创内容简化改写如下:
将moment对象转换为字符串:values.saleStartTime=moment(values.saleStartTime).format('YYYY-MM-DD');将字符串转换为moment对象:this.model.saleStartTime=moment(record.saleStartTime);补充知识:使用Vue和Ant Design的日期组件range-picker在表格中选取日期。
本文共计394个文字,预计阅读时间需要2分钟。
将伪原创内容简化改写如下:
将moment对象转换为字符串:values.saleStartTime=moment(values.saleStartTime).format('YYYY-MM-DD');将字符串转换为moment对象:this.model.saleStartTime=moment(record.saleStartTime);补充知识:使用Vue和Ant Design的日期组件range-picker在表格中选取日期。

