Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.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
Jquery 使用自定义分区显示具有多个tds的多个TR_Jquery_Angularjs_Angularjs Ng Repeat - Fatal编程技术网

Jquery 使用自定义分区显示具有多个tds的多个TR

Jquery 使用自定义分区显示具有多个tds的多个TR,jquery,angularjs,angularjs-ng-repeat,Jquery,Angularjs,Angularjs Ng Repeat,我正在将我的项目加载到具有多行和多个td的表中。我使用了来自链接的分区自定义过滤器 这是我的 myApp.filter('partition',function(){ var cache={}; var过滤器=功能(arr,大小){ 如果(!arr){return;} var newArr=[]; 如果(尺寸>阵列长度) 尺寸=阵列长度; 对于(var i=0;i它并没有占据整个tr,这是因为CSS样式的宽度属性 <table style="border-collapse: collaps

我正在将我的项目加载到具有多行和多个td的表中。我使用了来自链接的分区自定义过滤器

这是我的

myApp.filter('partition',function(){
var cache={};
var过滤器=功能(arr,大小){
如果(!arr){return;}
var newArr=[];
如果(尺寸>阵列长度)
尺寸=阵列长度;

对于(var i=0;i它并没有占据整个
tr
,这是因为CSS样式的宽度属性

<table style="border-collapse: collapse; width: 50px">


它将正确地显示

<table style="border-collapse: collapse; width: 50px">
<table style="border-collapse: collapse;">