//校验其他等级模块是否存在"职业类别"完全一致的等级模块 var moreFlag=false; for(var i=0;i<$scope.djArr.length;i++){ for(var j=0;j<$scope.djArr.length;j++){ if(j>i){ if($scope.djArr[j].isMore == true){ moreFlag = true; } if($scope.djArr[i].currentZylb == $scope.djArr[j].currentZylb && $scope.djArr[j].isMore == false){ $scope.djArr[j].noSameArrN =i+1; $scope.djArr[j].isMore = true; } } } if(moreFlag == true){ return false; } }
相关文章
- 02-20ng-校验重复并提示具体重复内容