function isLeapYear(date){ //传入日期类型 return (0==date.getYear()%4&&((date.getYear()%100!=0)||(date.getYear()%400==0))); }
本文共 168 字,大约阅读时间需要 1 分钟。
function isLeapYear(date){ //传入日期类型 return (0==date.getYear()%4&&((date.getYear()%100!=0)||(date.getYear()%400==0))); }
转载于:https://my.oschina.net/u/586536/blog/822696