day07作业

<!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>

day07作业day07作业

上一篇:自学Java之day07_API的初识及使用


下一篇:Day07 - grep、find