js时间戳转化为时间 //时间戳转时间 function time(sj) { var now = new Date(sj*1000); var year =now.getFullYear(); var month =now.getMonth()+1; var date =now.getDate(); var hour =now.getHours(); var minute =now.getMinutes(); var second =now.getSeconds(); return year+…