<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
var num = prompt("请输入一个数,我将判断奇偶")
num%2==0?alert("是偶数"):alert("是奇数")
</script>
</body>
</html>
js判断奇偶数
最新推荐文章于 2022-11-29 16:44:14 发布