我在将数据附加到表体时遇到问题。
代码
$.ajax({
type:'GET',
url:'{{url('dashboard/customer-groups')}}/'+ordID,
success:function(data){
console.log(data); //screenshot below
}
});
截屏
上面的 ajax 代码返回的数据分为 2 个类别(组和客户)

HTML
<table id="data-table" class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>Name</th> // from customers array
<th>Company</th> // from customers array
<th>Province</th> // from customers array
<th>City</th> // from customers array
<th>Email</th> // from customers array
<th>Industry</th> // from customers array
<th>Group</th> // from group
</tr>
</thead>
<tbody id="table_customer"></tbody>
</table>
任何的想法?
哔哔one
慕沐林林
慕森王
随时随地看视频慕课网APP
相关分类