// getDate()用法-----------getDate() 方法可返回月份的某一天 (1 ~ 31)。
// 1.获取当前日期是几号
console.log(new Date().getDate())
//2.获取某个日期是几号
console.log(new Date("July 21, 1983 01:15:00").getDate()) //21
console.log(new Date(1983,7,21).getDate()) //21
//3. 返回某个月的天数 new Date(年份,月份,0).getDate()
console.log(new Date(2019,7,0).getDate()) //31 返回这个月的天数