JS取当前时间、日期、月份、季度、指定月份天数

var myDate = new Date();get myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); //获取完整的年份(4位,1970-????)im myDate.getMonth(); //获取当前月份 (记得 + 1)时间 myDate.getDate(); //获取当前日(1-31)co myDate.getDay(); //获
相关文章
相关标签/搜索