var time = Date.parse( new Date() ).toString();//获取到毫秒的时间戳,精确到毫秒 time = time.substr(0,10);//精确到秒 相关文章: 2022-12-23 2022-12-23 2021-12-30 2021-08-27