在运行应用程序时,我收到了下面的弃用警告。Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment constructionInvalid date, _f: undefined, _strict: undefined, _locale: [object Object]发现了一些有用的堆栈溢出链接:
但仍然无法删除弃用警告</e
var viewValue = "GMT";
上面的return抛出下面的错误,你能让我知道如何解决下面的问题吗:
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment constructionNon RFC2822/ISO
我现在有这样的情况:myobject.time = Moment(ajaxinfo.startdate).format('DD/MM/YYYY');// ... more data is added ... return Moment.utc(left.time).diff(Moment.utc(right.time)