Ext.each(arrayObj, function(obj){
if(obj.isSomethingTrue()){
doSomething();
return false; /*this will prevent each from looking at
the next obj in the arrayObj*/
}
});
Ext each 不是使用break,是使用return false 跳出循环,布布扣,bubuko.com
Ext each 不是使用break,是使用return false 跳出循环
原文:http://blog.csdn.net/dracotianlong/article/details/21245747