js 时间戳转年月日

var t=1521694261;     console.log(timestampToTime(t))     timestampToTime(t)     function timestampToTime(timestamp) {         var date = new Date(timestamp * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000  
相关文章
相关标签/搜索