小编Vin*_*ang的帖子

如何为列表中的一个项目重复两列?

有可能角度重复实现吗?基本上我想知道有一种方法将2循环在一起吗?非常感谢任何帮助!

控制器:

$scope.date=[
    {ID:1,Date:'2016-11-12'},
    {ID:2,Date:'2016-11-15'},
    {ID:3,Date:'2016-12-06'}
]
Run Code Online (Sandbox Code Playgroud)

HTML:

<table border="1" align="center">   
    <tr>            
        <th rowspan="2">ITEMCODE</th>
        <th rowspan="2">DEBTORCODE</th> 
        <th colspan="2" ng-repeat="d in date">{{d.Date}}</th>   
    </tr>       
    <tr>
        <th>Bal</th>
        <th>Order</th>
    </tr>
</table>
Run Code Online (Sandbox Code Playgroud)

我希望Bal和Order列在每个日期列下并排重复. 而且我希望Bal和Order这两列将并排重复

html javascript angularjs ng-repeat

5
推荐指数
1
解决办法
78
查看次数

标签 统计

angularjs ×1

html ×1

javascript ×1

ng-repeat ×1