变量可以重复赋值,不是说浏览器从上往下解析吗,为啥显示的值总是最后一个
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>变量</title>
<script type="text/javascript">
var a="I know";
var a="I don't know";
document.write(a);
</script>
</head>
<body>
</body>
</html>