摘要: Date 对象用于处理日期和时间。创建 Date 对象的语法:var myDate=new Date()Date 对象会自动把当前日期和时间保存为其初始值。参数形式有以下5种: new Date("month dd,yyyy hh:mm:ss"); newDate("month dd,yyyy"); newDate(yyyy,mth,dd,hh,mm,ss); new Date(yyyy,mth,dd); new Date(ms);注意最后一种形式,参数表示的是需要创建的时间和GMT时间1970年1月1日之间相差的毫秒数。各种函数的含义如下:month: 阅读全文
posted @ 2014-03-07 17:13 kwishly 阅读(236) 评论(0) 推荐(0) 编辑
摘要: JavaScript_Date对象说明Date中文"日期",Date继承自Object对象,此对象提供操作日期与时间的函数引用网址:http://www.dreamdu.com/javascript/object_date/Date对象构造函数Date对象具有多种构造函数:new Date()new Date(milliseconds)new Date(datestring)new Date(year, month)new Date(year, month, day)new Date(year, month, day, hours)new Date(year, month, 阅读全文
posted @ 2014-03-07 16:49 kwishly 阅读(194) 评论(0) 推荐(0) 编辑