您的当前位置:首页正文

时间戳转日期格式

来源:华佗小知识
new Date() 返回具体时间
new Date().getTime() 返回时间戳
(new Date()).toLocaleString() 返回格式化好的时间
Paste_Image.png Paste_Image.png