基本上,我试图填充一个选择框,但连接first_name
列和last_name
列中的值。
我想做什么(不起作用):
<select ng-model="buyers" ng-options="b.id as (b.first_name + " " + b.last_name) for b in buyers"></select>
有什么作用:
<select ng-model="buyers" ng-options="b.id as b.first_name for b in buyers"></select>