var today=new Date();
    var abc=today.getMonth();
    switch (abc) {
        case 0:
        case 1:
        case 2:
            document.write("现在是春季");
            break;
        case 3:
        case 4:
        case 5:
            document.write("现在是夏季");
            break;
        case 6:
        case 7:
        case 8:
            document.write("现在是秋季");
            break;
        case 9:
        case 10:
        case 11:
            document.write("现在是冬季");
            break;
    }

 

相关文章:

  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-10-21
  • 2021-07-12
  • 2021-04-06
相关资源
相似解决方案