Extjs中断Ext.each应该使用return false,而不是return;

1         Ext.each(hosts,function(host){
2             if(host.isAgentOk){
3                 return false;//不能使用return
4             }else{
5                 failAgentLen++;
6             }
7         });
posted @ 2012-05-10 10:40  Kenn's note  阅读(410)  评论(0编辑  收藏  举报