Javascript 使用ng options在select下拉列表中将值类型前置到选项元素的值
HTML的功能如下所示:Javascript 使用ng options在select下拉列表中将值类型前置到选项元素的值,javascript,angularjs,Javascript,Angularjs,HTML的功能如下所示: <select id="frontend-select" ng-model="tech.backEndValue" ng-options="item.value as (item.name | translate) for item in techBackend"> </select> 其输出为: <select ng-model="tech.backEndValue" ng-options="item.value as (
<select id="frontend-select" ng-model="tech.backEndValue"
ng-options="item.value as (item.name | translate) for item in techBackend">
</select>
其输出为:
<select ng-model="tech.backEndValue" ng-options="item.value as (item.name | translate) for item in techBackend">
<option value="string:JAVA" label="Java" selected="selected">Java</option
<option value="string:PHP" label="PHP">PHP</option>
</select>
你能解决这个问题吗?我有同样的problem@brunocascio你解决了这个问题吗?