gpt4 book ai didi

javascript - 预选一个值

转载 作者:行者123 更新时间:2023-11-30 12:31:52 25 4
gpt4 key购买 nike

<分区>

我想在我的选择中预选一个值,但什么也没有,这是为什么?

Plnkr

angular.module('selectExample', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.cardSelect = [
{name:'black', shade:'dark'},
{name:'white', shade:'light'},
{name:'red', shade:'dark'},
{name:'blue', shade:'dark'},
{name:'yellow', shade:'light'}
];
$scope.card = $scope.cardSelect[2]; // red
}]);

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com