首页 > 其他分享 >moment.js:105 Uncaught TypeError: date.clone is not a function

moment.js:105 Uncaught TypeError: date.clone is not a function

时间:2022-11-07 11:58:47浏览次数:41  
标签:function TypeError 回显 clone js moment date

  • 在使用Antd的表单动态填充的方法 setFieldsValue 时出现的报错,是因为时间选择器回显出现了问题,当前的格式不支持显示,需要使用momentjs转换为正确的回显格式
 import moment from 'moment';
 //处理数据
 moment(selectedRow.implementationDate)

标签:function,TypeError,回显,clone,js,moment,date
From: https://www.cnblogs.com/windzz/p/16865430.html

相关文章