第二次作业

<head>
    <meta charset="utf-8">
    <title>
        交换两个变量
    </title>
</head>
<body>
    <script>
        var one=1;
        var two=2;<html>
<head>
    <meta charset="utf-8">
    <title>
        交换两个变量
    </title>
</head>
<body>
    <script>
        var one=1;
        var two=2;
        var temp=one;
        one=two;
        two=temp;
        document.write(one);
        document.write(two);
    </script>
</body>
 

 

 

posted @ 2023-03-12 21:49  乔文涛  阅读(20)  评论(0)    收藏  举报