angular.forEach

if($scope.jsList.length>0){
        angular.forEach($scope.jsList,function(item){
          if(item._id==jsid){
            jsname = item.name;
          }
        });
      }
      return jsname;
原文地址:https://www.cnblogs.com/yshyee/p/4540343.html