【发布时间】:2019-06-30 09:56:44
【问题描述】:
Json 结果出错
vr_date :Date
alert(this.vr_date ) // Result Shows Thu Feb 07 2019 00:00:00 GMT+0400
var json = JSON.stringify(this.vr_date);
alert(json); // Result Shows 2019-02-06T20:00:00.000Z see the date goes wrong
输出日期显示 06 而不是 07
请在此处找到应用程序 https://stackblitz.com/edit/angular-eavwul?file=app%2Fdatepicker-overview-example.ts
【问题讨论】:
标签: javascript json angular angular7