日期:2014-05-16 浏览次数:20334 次
FF: Firefox, N: Netscape, IE: Internet Explorer
FF:火狐,N:网景,IE
Date() | Returns today's date and time 返回今天的日期和时间 | 1 | 2 | 3 |
getDate() | Returns the day of the month from a Date object (from 1-31) 返回月中的第几天(1到31) | 1 | 2 | 3 |
getDay() | Returns the day of the week from a Date object (from 0-6) 返回一周中的第几天(0到6) | 1 | 2 | 3 |
getMonth() | Returns the month from a Date object (from 0-11) 返回月份数(0到11) | 1 | 2 | 3 |
getFullYear() | Returns the year, as a four-digit number, from a Date object 返回完整的年份数 | 1 | 4 | 4 |
getYear() | Returns the year, as a two-digit or a four-digit number, from a Date object. Use getFullYear() instead !! 返回年份,可以是两位的或是四位的 | 1 | 2 | 3 |
getHours() | Returns the hour of a Date object (from 0-23) 返回日期对象的小时数(0到23) | 1 | 2 | 3 |
getMinutes() | Returns the minutes of a Date object (from 0-59) 返回日期对象的分钟(0到59) | 1 | 2 | 3 |
getSeconds() | Returns the seconds of a Date object (from 0-59) 返回日期对象的秒(0到59) | 1 | 2 | 3 |
getMilliseconds() | Returns the milliseconds of a Date object (from 0-999) 返回毫秒(0到999) | 1 | 4 | 4 |
getTime() | Returns the number of milliseconds since midnight Jan 1, 1970 从1970年1月1号午夜到现在一共花去的毫秒数 | 1 | 2 | 3 |
getTimezoneOffset() | Returns the difference in minutes between local time and Greenwich Mean Time (GMT) 本地时间和GMT相差多少分钟 | 1 | 2 | 3 |
getUTCDate() | Returns the day of the month from a Date object according to universal time (from 1-31) 依据国际时间来得到月中的第几天(1到31) | 1 | 4 | 4 |
getUTCDay() | Returns the day of the week from a Date object according to universal time (from 0-6) 依据国际时间来得到现在是星期几(0到6) | 1 | 4 | 4 |
getUTCMonth() | Returns the month from a Date object according to universal time (from 0-11) 依据国际时间来得到月份(0到11) | 1 | 4 | 4 |
getUTCFullYear() | Returns the four-digit year from a Date object according to universal time 依据国际时间来得到完整的年份 | 1 | 4 | 4 |
getUTCHours() | Returns the hour of a Date object according to universal time (from 0-23) 依据国际时间来得到小时(0-23) | 1 | 4 | 4 |
getUTCMinutes() | Returns the minutes of a Date object according to universal time (from 0-59) 依据国际时间来返回分钟(0到59) | 1 | 4 | 4 |
getUTCSeconds() | Returns the seconds of a Date object according to universal time (from 0-59) 依据国际时间来返回秒(0到59) | 1 | 4 | 4 |
getUTCMilliseconds() | Returns the milliseconds of a Date object according to universal time (from 0-999) 依据国际时间来返回毫秒(0到999) | 1 | 4 | 4 |
parse() | Takes a date string and returns the number of milliseconds since midnight of January 1, 1970 或得并返回自1970年1月1号凌晨到现在一共花掉了多少毫秒 | 1 | 2 | 3 |
setDate() | Sets the day of the month in a Date object (from 1-31) 设置日 | 1 | 2 | 3 |
setMonth() | Sets the month in a Date object (from 0-11) 设置月 | 1 | 2 | 3 |
setFullYear() | Sets the year in a Date object (four digits) 设置年份 | 1 | 4 | 4 |
setYear() | Se
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
|