var html = "--";
if(data.createTime!=null&&data.createTime!=""){
Date.prototype.toLocaleString = function() {
return this.getFullYear() + "-" + (this.getMonth() + 1) + "-" + this.getDate() ;
};
var unixTimestamp = new Date(data.createTime) ;
commonTime = unixTimestamp.toLocaleString();

html=commonTime;
}
return html;

友情链接:https://www.cnblogs.com/zhanghaoliang/p/5997619.html

相关文章:

  • 2022-01-01
  • 2022-01-01
  • 2022-01-01
  • 2021-12-22
  • 2021-11-27
  • 2022-01-01
  • 2022-01-01
猜你喜欢
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
  • 2022-01-01
  • 2022-01-01
  • 2021-11-27
  • 2021-11-27
相关资源
相似解决方案