中断条件继续循环(Break condition to continue loop)
当条件完成然后继续循环时,我怎么办?
(难以理解的语言xD)
在代码中
for(var i=0;i<10;i++) { if( // some condition) { //codee doesn't matter } else if ( // some condition ) { //And NOW when code is here i want go to next repetition } }
当我尝试使用继续和休息我有错误
非法违规声明
返回也是坏事,因为它不会转移到下一次重复
我希望我写这个好..谢谢!
I don't how can i do when condition done and then continue loop
(soory for incomprehensible Language xD)
In code
for(var i=0;i<10;i++) { if( // some condition) { //codee doesn't matter } else if ( // some condition ) { //And NOW when code is here i want go to next repetition } }
When i try to use continue and break i have error
illegal break statement
return too is bad because it doesn't move to next repetition
I hope that i write this ok .. thanks!
原文:https://stackoverflow.com/questions/18011008
更新时间:2023-08-26 08:08