根据时间戳判断今天,昨天
let timetoday = new Date(new Date().setHours(0, 0, 0, 0)) / 1000;//今天零点时间
let timetooday = timetoday - 3600*24;//昨天零点时间
let newDate = new Date(时间戳 * 1000).toDateString();//获取的后台发来的服务器今天时间
if(new Date(时间戳 * 1000).toDateString() == newDate){
console.log("今天")
}
if(timetoday>时间戳 && 时间戳>timetooday){
console.log("昨天")
}