日期对象、Math对象、字符串对象、数组对象

Date日期对象 new Date() 创建一个日期对象 getFullYear() 返回年份 getMonth() 返回月份数(0-11),想要得到几月,需要加一 getDay() 返回一周的第几天(0-6) getDate() 返回日 getHours() 返回时 getMinutes() 返回分 getSeconds() 返回秒 getTime() 返回从1970年1月1日00:00到现在的
相关文章
相关标签/搜索