为什么初始值要为1呢?不是应该为0 吗?
<script type="text/javascript">
var num=1;
for (num=1;num<=6;num++)
{
document.write("取出第"+num+"个球<br />");
}
</script>
<script type="text/javascript">
var num=1;
for (num=1;num<=6;num++)
{
document.write("取出第"+num+"个球<br />");
}
</script>
2017-08-11
举报