This is what I output now: {{answer.time | date:'yyyy-MM-dd'}}The result is output: 1970-01-18The value of answer.time is Timestamp.
How can I display the date correctly?
光阴似箭催人老,日月如移越少年。
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)
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)