这个作业属于哪个课程 | https://edu.cnblogs.com/campus/sdscfz/SF3/ |
---|---|
这个作业要求在哪里 | https://edu.cnblogs.com/campus/sdscfz/SF3/homework/12939 |
这个作业的目标 | 第二次作业-交换两个变量的值 |
<!DOCTYPE html>
<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>
</html>
标签:两个,变量,作业,交换,two,SF3,var
From: https://www.cnblogs.com/mt0510/p/17209175.html