哪位瞅瞅哦,为啥没有将结果呢。
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>if...else</title>
<script type="text/JavaScript">
var mymoney,sum=0;
for(mymoney=1;mymoney<=10,mymoney++)
{
sum= sum + mymoney
}
document.write("sum:"+sum);
</script>
</head>
<body>
</body>
</html>