
解决方案是在引入后面添加这行代码
找了n个方案只有这个最靠谱!!!!
import moment from "moment";
moment.suppressDeprecationWarnings = true;
文章介绍了在项目中遇到关于moment.js库的警告问题时,通过设置`moment.suppressDeprecationWarnings=true;`这一行代码作为解决方案,确保项目的稳定运行。

解决方案是在引入后面添加这行代码
找了n个方案只有这个最靠谱!!!!
import moment from "moment";
moment.suppressDeprecationWarnings = true;
888
2307

被折叠的 条评论
为什么被折叠?