xxxxxxxxxx
<!DOCTYPE html>
<html>
<title>JavaScript 同一个变量重新赋值示例 - 基础教程(div.cn)</title>
<body>
<p>您可以将值重新分配给JavaScript变量:</p>
<script>
var x = 10;
document.writeln(x);
x = 50;
document.writeln(x);
x = "Helo world";
document.writeln(x);
</script>
</body>
</html>