ui-select的选择有两种情况:单个的和multiple
1,单个的
<ui-select ng-model="command.value">
<ui-select-match>
<span ng-bind="$select.selected.name"></span>
</ui-select-match>
<ui-select-choices repeat="item in itemArrays| filter: $select.search track by item.id">
<span ng-bind="item.name"></span>
</ui-select-choices>
</ui-select>
其中的 ui-select-choices 中repeat的filter和track by不一定要用,根据自己需要选择
2.mutiple
<ui-select multiple name="conSelect" ng-model="cons" class="form-control input-sm" required>
<ui-select-match>{
{$item.id}}</ui-select-match>
<ui-select-choices repeat="con in backingData.cons | filter: $select.search | orderBy:'id' track by con.id " >