为什么在do..while循环里不能用自减?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>do...while</title>
<script type="text/javascript">
var mynum =6;//mynum初值化数值为6
do
{
document.write("数字:"+mynum+"<br/>");
mynum=mynum-1;//改成mynum=mynum--
}
while(mynum>0)
</script>
</head>
<body>
</body>
</html>
一改成mynum网页就crash,是不能用这样的方法吗?