Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 如何在angular js中重复表中的行_Angularjs_Angular1.6 - Fatal编程技术网

Angularjs 如何在angular js中重复表中的行

Angularjs 如何在angular js中重复表中的行,angularjs,angular1.6,Angularjs,Angular1.6,下面是我在php中使用的代码 @for($i= 0; $i < 15; $i++) <tr> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td&g

下面是我在php中使用的代码

@for($i= 0; $i < 15; $i++)
<tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
</tr>
@endfor

请帮我解决这个问题。感谢

ng repeat接受一个数组,您提供了一个值
$scope.other\u line=15。
ng重复运行数组中的代码。长度次

所以你的代码应该是

$scope.other_line = [];
$scope.other_line.length = 15;

<div ng-repeat="rows in other_line">
  <td></td
</div>
$scope.other_line=[];
$scope.other_line.length=15;

other_行
设为15个项目的数组。例如,
$scope.other_line=new Array(15)
ng repeat=“other_line track by$index中的行”
的可能副本应作为副本关闭。
$scope.other_line =15;
$scope.other_line = [];
$scope.other_line.length = 15;

<div ng-repeat="rows in other_line">
  <td></td
</div>
<div ng-repeat="rows in other_line">
 <td></td
</div>
<div ng-repeat="rows in other_line">
 <td></td
</div>
<div ng-repeat="rows in other_line">
 <td></td
</div>
.
.
.
.
<div ng-repeat="rows in other_line">
 <td></td
</div>