function getDate(time){
var date =(new Date(parseInt(time))).toLocaleDateString()
return date;
}

 

time就是要转换的时间戳

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-05-21
  • 2021-11-28
  • 2021-12-13
  • 2021-11-28
  • 2021-11-30
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2022-01-20
  • 2022-02-16
  • 2022-01-31
  • 2022-01-21
  • 2022-12-23
相关资源
相似解决方案