New Date()的一些方法 start 2024-05-27 32 阅读1分钟 getyear(),2024=>124,相对于1900的年份; getfullyear(),2024=>2024,4位数的年份; getDate(),2024.05.27=>27,0-31的数字,日; getDay(),2024.05.27=>1,0-6的数,代表星期几,0是星期日; getMonth(),2024.05.27=>4,0-11的数,代表几月,0是一月;