if(nowDate() > date){
// 昨天
$("#yesterday").html(htmlStr);
}else if (nowDate() < date){
// 明天
$("#tomorrow").html(htmlStr);
}else {
// 今天
$("#today").html(htmlStr);
}
// 今日日期
function nowDate(){
let now = new Date();
let year = now.getFullYear();
let month = now.getMonth() + 1;
let day = now.getDate();
if(month < 10){
month = '0'+month;
}
if(day < 10){
day = '0'+day;
}
let nowStr = year +"-"+ month+"-"+day;
return nowStr
}