-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
酷项目。
var day=date.getDate()<10?"0"+date.getDate():date.getDate();
var tomorrow = function(){
return year+"-"+month+"-"+(day+1)+" "+hh+":"+mm+":"+ss;
}
var yesterday = function(){
return year+"-"+month+"-"+(day-1)+" "+hh+":"+mm+":"+ss;
}这里对day变量做运算,它并不是Date对象所以呃呃,变成了字符串拼接,不如干脆用Date对象,免得月末的时候寄(?)
对于实际观感还是有点影响的↓
ZZDDD
Metadata
Metadata
Assignees
Labels
No labels
