html
html 測試 左單右單
!>
html 測試 單入單出
!>
html 測試 上入下出
!>
html 測試 左入右出
!>
2018年3月5日 星期一
JavaScript Date() 日期與時間
JavaScript Date() 日期與時間
Method
Description
getDate()
Get the day as a number (1-31)
getDay()
Get the weekday as a number (0-6)
getFullYear()
Get the four digit year (yyyy)
getHours()
Get the hour (0-23)
getMilliseconds()
Get the milliseconds (0-999)
getMinutes()
Get the minutes (0-59)
getMonth()
Get the month (0-11)
getSeconds()
Get the seconds (0-59)
getTime()
Get the time (milliseconds since January 1, 1970)
00
JavaScript Date() 日期與時間
Date.now()
new Date().getTime()
Date()
new Date().getFullYear()+"年";
new Date().getMonth()+1+"月";
new Date().getDate()+"日";
V= ["日","一,"二","三","四","五","六"];
V [ new Date().getDay() ];
new Date().getHours()+"時";
new Date().getMinutes()+"分";
new Date().getSeconds() +"秒";
00
age calculator 計算年齡
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
00
/** 獲取某個月的總天數 **/
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
00
#html getDate()
#html getFullYear()
#html getHours()
#html getMilliseconds()
#html getSeconds()
#html getTime()
#html Date.now()
#html new Date()
#html Date()
#html 日期與時間()
#html UTC()()
#script getDate()
#script getFullYear()
#script getHours()
#script getMilliseconds()
#script getSeconds()
#script getTime()
#script Date.now()
#script new Date()
#script Date()
#script 日期與時間()
#script UTC()
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言