我有一个选择使用ng-options来提供结果。我可以让它生成一个json元素到div,但我似乎无法让它为另一个做。我错过了什么?
HTML代码:
<table class="table">
<tr>
<td class="select_container">
<select class="form-control" ng-model="selectedOption_1" ng-options="select_array.value as select_array.displayName for select_array in select_array"></select>
</td>
<td colspan="2">{{selectedOption_1}}</td>
<td colspan="3">{{selectedOption_1}}</td>
</tr>
</table>
Angular Code:
$scope.select_array = [
{value: '1', region:'London', displayName: 'display_1'},
{value: '2', region:'London', displayName: 'display_2'},
{value: '3', region:'London', displayName: 'display_3'},
];
$scope.selectedOption_1 = '123,285';
所以我想要发生的是,当你选择一个选项时,让它在第一个div中填充值,在第二个div中填充区域。并根据您选择的选项更改数据。提前感谢您的任何建议。
答案 0 :(得分:0)
试试这个,您将把整个对象映射为选项的值。
Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.myapp.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp.myapp-1/lib/arm64, /data/app/com.myapp.myapp-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libImageProc.so"