【发布时间】:2016-09-30 01:23:10
【问题描述】:
我需要使用 select 从我的数据库中获取两个选项。 我的 Firebase 中有以下信息:
dias: "3"
nome: "VISA - DEBITO"
taxa: "1,11"
tipo: "001"
我在 HTML 中使用这一行:
<div class="form-group">
<label for="category" class="col-sm-3 control-label">Formas <span class="text-danger" style="font-size: 15px;">*</span></label>
<div class="col-sm-9">
<select chosen="{width: '100%'}" name="formas" class="form-control" id="formas" ng-options="item2.dias as item2.nome for item2 in childformas" ng-model="ordem.formaId" data-placeholder="Escolha a forma de pagamento">
<option></option>
</select>
</div>
</div>
这样做的结果是我将dias信息选择VISA - DEBITOordem.formaId -> 3,但我需要同时获取dias和taxa的信息。
有可能吗?
【问题讨论】:
-
嗨!欢迎来到 StackOverflow。您可以使用 {} 按钮来格式化您的代码吗?
标签: javascript angularjs html firebase