moment.js?c1df:283 Deprecation warning: value provided is not in a
recognized RFC2822 or ISO format. moment construction falls back to js
Date(), which is not reliable across all browsers and versions. Non
RFC2822/ISO date formats are discouraged and will be removed in an
upcoming major release. Please refer to
http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments:
引入moment 之后 在控制台有一大段报错, 详情如下图;

moment.js?c1df:283 Deprecation warning: value provided is not in a recognized RFC2822 or ISO format

原因: 因为 你可能在main.js 中 import 了这个数据, 然后又在页面中单独引入了moment插件。 重复引用造成的bug。 在单个页面中删掉一个引入, 保存公共引入就好了。

相关文章:

  • 2021-09-06
  • 2021-05-20
  • 2022-01-02
  • 2022-12-23
  • 2021-04-07
  • 2021-05-30
  • 2021-07-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案