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 });
1 Ext.each(hosts,function(host){ 2 if(host.isAgentOk){ 3 return false;//不能使用return 4 }else{ 5 failAgentLen++; 6 } 7 });