iverson666

//闰年能被4整除且不能被100整除,或能被400整除。
function year(){
  if(year%4==0&&year%100!=0||year%400==0){
          console.log(“闰年”);
  }else{

     console.log(“平年”);

  }

}

分类:

技术点:

相关文章:

  • 2021-11-28
  • 2021-04-09
  • 2021-12-04
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
猜你喜欢
  • 2021-11-28
  • 2021-11-28
  • 2021-03-30
  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-11-19
相关资源
相似解决方案