var time = Date.parse( new Date() ).toString(); //精确到毫秒
time = time.substr(0,10); //精确到秒
(前端)js 获取到秒的时间戳
最新推荐文章于 2024-02-28 17:31:48 发布
var time = Date.parse( new Date() ).toString(); //精确到毫秒
time = time.substr(0,10); //精确到秒