Uncaught TypeError: date.clone i

2021-08-31  本文已影响0人  Rose_yang
Uncaught TypeError: date.clone is not a function
    at Object.format (moment.js?7733:105)
    at formatValue (dateUtil.js?0ddf:126)
    at eval (useValueTexts.js?a050:19)
    at useMemo (useMemo.js?62bb:6)
    at useValueTexts (useValueTexts.js?a050:8)
    at InnerPicker (Picker.js?dd58:134)
    at Le (react-dom.production.min.js:100)
    at Pj (react-dom.production.min.js:231)
    at di (react-dom.production.min.js:168)
    at Nj (react-dom.production.min.js:168)

时间数据回显要转成moment格式
moment(moment(), format) 这样写报错
直接传moment()

上一篇 下一篇

猜你喜欢

热点阅读