angular.forEach

if($scope.jsList.length>0){
        angular.forEach($scope.jsList,function(item){
          if(item._id==jsid){
            jsname = item.name;
          }
        });
      }
      return jsname;

 

posted @ 2015-05-30 14:49  yshy  阅读(199)  评论(0编辑  收藏  举报