var time = Date.parse( new Date() ).toString();//获取到毫秒的时间戳,精确到毫秒
time = time.substr(0,10);//精确到秒

 

相关文章: