JS獲取前一天時間

var today=new Date(); var yesterday_milliseconds=today.getTime()+(1*(1000*60*60*24)); var yesterday=new Date(); yesterday.setTime(yesterday_milliseconds); var strYear=yesterday.getFullYear(); var strD
相關文章
相關標籤/搜索