14.2.获取时间值

问题
我要取得年月日,星期,小时,分,秒,毫秒等数值。
解决办法
是用fullYear, date, month, day, hours, minutes, seconds, milliseconds 等属性。
讨论
从Date对象的fullYear, date, month, day, hours, minutes, seconds, milliseconds属性中读取:
fullYear 属性返回4位数的年份值,如2010.
date 属性返回月天数,如1 到31.
month 属性返回月份,如0 (1月) 到11 (12月).
day 属性返回星期天数,如0 (星期天) 到6 (星期六).
hours 属性返回小时数,如0 到23.
minutes 和seconds 属性返回值为0 到59.
milliseconds 属性返回值为0 到999.

加支付宝好友偷能量挖...


评论(0)网络
阅读(107)喜欢(0)flash/flex/fcs/AIR