<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>关于交换值的算法</title>
</head>
<body>
<script>
var apple1='青苹果';
var apple2='红苹果';
var temp;
temp =apple1;
apple1=apple2;
apple2=temp;
console.log("apple1里为:"+apple1);
console.log("apple2里为:"+apple2);
</script>
</body>
</html>