一初始化 当前时间 new Date()
指定时间 new Date('2017-3-12 12:12:12')
二常用方法
getFullYear() 获取年份
getMonth() 获取月份 获取当前的月份 +1
getDate() 获取天
getHours() 获取小时
getMinutes() 获取分钟
getSeconds() 获取秒
getDay() 获取星期 0-6 对应的是星期日至星期六