時間日期函數

var mydate = new Date(); mydate.getYear(); //獲取當前年份(2位) mydate.getFullYear(); //獲取完整的年份(4位,1970-???) mydate.getMonth(); //獲取當前月份(0-11,0代表1月) mydate.getDate(); //獲取當前日(1-31) mydate.getDay(); //獲取當前星期X(
相關文章
相關標籤/搜索