var now_date = new Date();//获取Date对象
now_date.setHours(0);//设置小时
now_date.setMinutes(0);//设置分钟
now_date.setSeconds(0);//设置秒
now_date.setMilliseconds(0);//设置毫妙
var timestamp = now_date.getTime();//获取毫秒时间戳
var unix_timestamp = Math.floor(date.getTime()/1000);获取unix时间戳

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2021-12-29
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2021-07-30
  • 2022-12-23
  • 2021-11-18
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案