for (count=1;count<=3;count++)
alert(count);
可以
for (count=1;count<=3;count++)
alert(count)
也是可以的。
你所说的是for语句用法,不能缺少分号。
alert(count);
可以
for (count=1;count<=3;count++)
alert(count)
也是可以的。
你所说的是for语句用法,不能缺少分号。
b=2;
if(a>b){
c=a;
...
} //这里不要分号
else {
c=b;
...
}; //这里要分号个人习惯,供参考