请问?为什么for语句括号后面有;和无;结果不同?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>if...else</title>
<script type="text/JavaScript">
var money,sum=0;
for(money=1;money<=10;money++);
{
sum=sum+money;
}
document.write("一共多少钱:"+sum);
</script>
</head>
<body>
</body>
</html>