<div>
<table ng-table="vm.tableParams" class="table table-condensed table-bordered table-striped">
<tr ng-repeat="row in $data">
<td data-title="'商品名'" filter="{iname: 'text'}" sortable="'iname'">{{row.iname}}</td>
<td data-title="'库存数'" filter="{inums: 'number'}" sortable="'inums'">{{row.inums}}</td>
<td data-title="'售价'" filter="{iprice: 'number'}" sortable="'iprice'">{{row.iprice}}</td>
</tr>
</table>
</div>
如图所示,库存数排序,明显不正确;求解
inums 是从json得到的字符串型;
inums:"30"
暮色呼如
相关分类