//code before for(var a in b) { switch(something) { case something: { //code inside break; } } } //code after
//code before (function () { for (var a in b) { switch (something) { case something: { //code inside return; } } } }()); //code after
这是因为返回离开函数,因此隐式离开循环,直接转到代码之后