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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-08-27
猜你喜欢
  • 2021-12-21
  • 2021-12-30
  • 2021-05-20
  • 2021-12-03
  • 2021-12-30
相关资源
相似解决方案