while(mynum) 为什么这么写就对了?mynum=mynum-1; 为什么这样写呢?
<script type="text/javascript"> var mynum =6;//mynum初值化数值为6 do { document.write("数字:"+mynum+"<br/>"); mynum=mynum-1; } while(mynum) </script>
<script type="text/javascript"> var mynum =6;//mynum初值化数值为6 do { document.write("数字:"+mynum+"<br/>"); mynum=mynum-1; } while(mynum) </script>
2015-01-08
举报