<script>
var year=2016;
function runnian(year){
if (year%400==0) {return true;}else if (year%4==0&&year%100!=00) {return true;}else{
return false;
}
}
if (runnian(year)) {document.write("闰年")}else{document.write("不是闰年");}
</script>