<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<button onclick="alert(123456789)">按钮</button>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
var i,a,b,c;
for(i=100;i<1000;i++) {
a = parseInt(i / 100);
b = parseInt((i - a * 100) / 10);
c = parseInt(i - a * 100 - b * 10);
if (a * a * a + b * b * b + c * c * c == i) {
document.write(i + "<br>");
}
}
</script>
</body>
</html>
js
最新推荐文章于 2024-05-06 17:58:03 发布