javascript - Datatabe combined with ajax dynamically add data, there is a time summary, how to convert it into date
伊谢尔伦
伊谢尔伦 2017-05-19 10:18:05
0
2
442

What is returned in the background in the red circle is a time frame. How to convert it to year, month, day type?"

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
洪涛

Use moment.js to convert time into the format you want

迷茫

The number above is the timestamp.

new Date(timestamp) can construct the timestamp into a Date object

Use the Date method to complete 年月日string conversion

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template