Extjs4-退出store.each() unlabelled break must be inside loop or switch

Extjs4---退出store.each() unlabelled break must be inside loop or switchcontactGroupStore.each(func

Extjs4---退出store.each() unlabelled break must be inside loop or switch

contactGroupStore.each(function(data){        if(value == data.raw.fzbh){        fzmc = data.raw.fzmc        //退出循环        return false        }        })

今天在遍历store时遇到的问题

当我在用store.each()遍历store用break退出时,报了个错误 unlabelled break must be inside loop or switch

在这里不能使用break,可以使用return false来代替