| 12345678910111213141516171819202122232425262728 | 
							- <!DOCTYPE html>
 
- <html lang="en">
 
- <head>
 
-   <meta charset="UTF-8">
 
-   <meta http-equiv="X-UA-Compatible" content="IE=edge">
 
-   <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
-   <title>Document</title>
 
- </head>
 
- <body>
 
-   <script>
 
-     /* 
 
-     输入年份 判断是否是闰年  如果是 输出为 当前年份为闰年  如果不是 输出 当前年份不是闰年
 
-     年份是4的倍数  且 不是100的倍数
 
-     */
 
-     var a = window.prompt('请输入年份', 2023)
 
-     if (a % 4 == 0 && a % 100 != 0) {
 
-       alert('我是闰年')
 
-     } else {
 
-       alert('我不是闰年')
 
-     }
 
-   </script>
 
- </body>
 
- </html>
 
 
  |