一、js中的日期对象 new Date() 二、日期对象的方法 语法 : 日期对象.方法 newDate().aaa() 1. getTime() ===》 时间戳 从1970年1月1日0点0分开始,到现在的毫秒数 2. getFulYear() ===》 年 3. getMonth() ===》月 (注:一定要+1) 中国: 1-12 国外: 0-11 4. getDate() ===》 日 5. getDay() ===》 星期 6. getHours ===》 小时 7. getMinutes() ===》分钟 8. getSeconds() ===》 秒