js獲取當前時間,往前或往後推多少天並且判斷是星期幾

var now = new Date(); var date = new Date(now.getTime() +1 * 24 * 3600 * 1000); var year = date.getFullYear(); var month = date.getMonth() + 1; var day = date.getDate(); var hour = date.getHours(); va
相關文章
相關標籤/搜索