首先后台给你的数据结构要是这样的:
<table class="layui-table" lay-skin="line">
<colgroup>
<col width="170">
<col>
</colgroup>
<thead>
<tr>
<th>回访时间</th>
<th>记录内容</th>
</tr>
</thead>
<tbody>
{{# layui.each(d.data.visit_logs, function(index, visit_log){ }}
<tr>
<td>{{ visit_log.created_at }}</td>
<td>{{ visit_log.content }}</td>
</tr>
{{# }); }}
</tbody>
</table>
网友评论