Ext each 不是使用break,是使用return false 跳出循环

来源:互联网 发布:阿里云磁盘io 编辑:程序博客网 时间:2024/06/10 17:40
Ext.each(arrayObj, function(obj){    if(obj.isSomethingTrue()){        doSomething();        return false; /*this will prevent each from looking at                         the next obj in the arrayObj*/    }});
1 0
原创粉丝点击