Commit bdcc50d6 authored by xwenliang's avatar xwenliang

fix: example bug, Leap day for years that are divisible by 4

parent bc4c976f
......@@ -22,6 +22,10 @@ function createDateData(){
for(let k=1;k<29;k++){
day.push(k+'');
}
//Leap day for years that are divisible by 4, such as 2000, 2004
if(i%4 === 0){
day.push(29+'');
}
}
else if(j in {1:1, 3:1, 5:1, 7:1, 8:1, 10:1, 12:1}){
for(let k=1;k<32;k++){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment