服务器获取的json数据正常console 正常显示遍历,却给tabile添加后 类似于9*9=81格式
for (var i in content) {
$(".connect").append("<tr id='active_obj_' class='active active_obj_'></tr>");
for (var j in content[i]) {
$(".active_obj_").append( "<td>"+content[i][j]+"</td>")
}
}
遍历后这样:
<tr id="active_obj_" class="active active_obj_">
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
<tr id="active_obj_" class="active active_obj_">
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
<tr id="active_obj_" class="active active_obj_">
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
<tr id="active_obj_" class="active active_obj_">
<td>a</td>
<td>b</td>
<td>c</td>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
<tr id="active_obj_" class="active active_obj_">
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
有什么办法能解决,今日早上到现在解决不了
我要的是一个TR理念就显示3个td就行了