如果我有:
while(foo) {
var x = bar.filter(function(){ /* any problems with using `break;` here to exit the while-loop? */ });
bar(), baz();
// and so on...
}
会出现任何奇怪或意外的行为吗?
break;
时,它将不起作用,因此会遇到很多问题。 - musefan