求助,请问讲没while条件设置为mynum==0的时候为何只输出 数字6 的结果?
<script type="text/javascript">
var mynum =6;//mynum初值化数值为6
do
{
document.write("数字:"+mynum+"<br/>");
mynum=mynum-1;
}
while(mynum == 0)
</script>
</head>
<script type="text/javascript">
var mynum =6;//mynum初值化数值为6
do
{
document.write("数字:"+mynum+"<br/>");
mynum=mynum-1;
}
while(mynum == 0)
</script>
</head>
2015-02-05
举报