JS怎样写闰年
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> </body> </html> <script type="text/javascript"> var runNian = parseInt(prompt("请输入年份")) if(runNian%4 == 0 && runNian%100 !== 0 || runNian%400 ==0 ) { alert("闰年") } else{ alert("不是闰年") } </script>