function changetiemToDate(time){
var date = new Date(time)
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
var result = y+'/'+(m<10?('0'+m):m)+'/'+(d<10?('0'+d):d)
return result;
}
function changetiemToDate(time){
var date = new Date(time)
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
var result = y+'/'+(m<10?('0'+m):m)+'/'+(d<10?('0'+d):d)
return result;
}
本文标题:时间戳转时间
本文链接:https://www.haomeiwen.com/subject/wxygmftx.html
网友评论