📜  angularjs ng-options 名称值 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:42.348000             🧑  作者: Mango

代码示例1
angular.forEach($scope.banklist_list, function(value) {
            if(value.bank_id ==  $scope.pay_advance.bank_id){
                $scope.bank_name = value.bank_name;
            }
        });

//$scope.banklist_list =>is array  
//$scope.pay_advance.bank_id=> ng-model