JS获取到秒的时间戳

var time = Date.parse( new Date() ).toString();//获取到毫秒的时间戳,精确到毫秒
time = time.substr(0,10);//精确到秒
原文地址:https://www.cnblogs.com/wangyongx/p/13713648.html