ple*_*dez 4 angularjs ng-repeat angularjs-ng-repeat
我有一个 vm.s = new Set([1,2,3])
如何ngRepeat在s不将其转换为数组的情况下使用?
我试过了
<option ng-repeat="o in vm.s">{{o}}</option>
<option ng-repeat="o in vm.s.values()">{{o}}</option>
<option ng-repeat="o in Array.from(vm.s)">{{o}}</option>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3168 次 |
| 最近记录: |