我试图将默认值设置为多选,但根本没有选择。其他多重选择可以选择值,但是该多重选择元素根本没有选择。我尝试将列表手动放在此处以进行选择,但未选择默认值。
angularjs
MessageBox
html
$scope.availableAttributes = [ { id: 0, type: "Carrier" }, { id: 2, type: "Origin Site" }];
$scope.rule= {
"availableAttributes": $scope.availableAttributes,
"selectedAttributes": [{ id: 0, type: "Carrier" }]
};