如题,这是html界面,我想把这个表格中的数据给传递到后端进行处理
<form method="post" action="/sr/bi" name="table">
{% csrf_token %}
<table class="table table-bordered" id="zzz">
<thead>
<tr>
<th>R400</th>
<th>R401</th>
<th>R402</th>
</tr>
</thead>
<tbody id="tb">
{% for item in obj %}
<tr>
<td>{{ item.r400 }}</td>
<td>{{ item.r401 }}</td>
<td>{{ item.r402 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<button type="submit" class="btn btn-primary" style="margin-left:15%;">提 交</button>
</form>
这是后端代码,我想接收到数据后先打印一下,结果得到的是 [ ] 空列表
def sb(request):
hhh = request.POST.getlist('table')
print(hhh)
return HttpResponse('???')
请问应该怎么办