<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<button onclick="alert('试试就试试')">点我试试看</button>
</body>
</html>
2.``<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script>
var a,b,c,d;
for(var i=1;i<=1000;i++)
{
a=i/1%10;
b=i/10%10;
c=i/100%10;
if (a*a*a+b*b*b+c*c*c==i)
{
console.log(i);
}
}
</script>
</head>
<body>
</body>
</html>
3.<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script>
var d;
function f(x,c,y) {
if(c=="+"){
d=x+y;
console.log(d);
}
if(c=="-"){
d=x-y;
console.log(d);
}
if(c=="*"){
d=x*y;
console.log(d);
}
if(c=="/"){
d=x/y;
console.log(d);
}
}
f(1,"+",2);
</script>
</head>
<body>
</body>
</html>