JS取當前時間、日期、月份、季度、指定月份天數

var myDate = new Date();get myDate.getYear(); //獲取當前年份(2位) myDate.getFullYear(); //獲取完整的年份(4位,1970-????)im myDate.getMonth(); //獲取當前月份 (記得 + 1)時間 myDate.getDate(); //獲取當前日(1-31)co myDate.getDay(); //獲
相關文章
相關標籤/搜索