JS条件语句

1,if

2,for

但是for语句的执行比较灵活,

可以视要求,改变1,2,3,语句的位置

另外,for语句的执行顺序为,

1->2->3->2->3->2->3.....

3,while

4,do-while

5,switch-case

6,break跳出循环,continue跳过此次循环,进行下次循环

猜你喜欢

转载自blog.csdn.net/VVVZCS/article/details/81837676