怎么在js中把1402484330000这种格式的时间改成年月日时分秒的格式啊

2025-04-07 23:00:29
推荐回答(1个)
回答1:

时间戳改时间,简单点

alert((new Date("1412849746")).toLocaleDateString())