Questions tagged «angularjs-ng-options»

2
是否可以串联Angular ng-options中的值
基本上,我试图填充选择框,但将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>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.