angular.js - 请问关于angularjs的date filter的timezone问题
大家讲道理
大家讲道理 2017-05-15 16:59:58
0
2
468

我现在是这么输出:
{{answer.time | date:'yyyy-MM-dd'}}
结果输出了:1970-01-18
answer.time的值是时间戳。

请问如何能正确显示日期?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
滿天的星座

O, it turns out that the number of seconds I sent from the background should be changed to milliseconds

洪涛

js 处理 answer.time = new Date(answer.time)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!