form表单中input 为 disabled 的输入框不会向后端提交数据,因此在点击提交按钮时候,只会提交 dev_id 的值
<table class="table-list" style="width: 60%">
<tbody>
<form id="data_form" action="" method="post">
<tr>
<th style="width: 150px">字段</th>
<th>值</th>
</tr>
<tr>
<td>id</td>
<td>
<input disabled title="该字段不可更改" name="id" type="text" value="13">
</td>
</tr>
<tr>
<td>test_time</td>
<td>
<input disabled title="该字段不可更改" name="test_time" type="text" value="2022-09-14 17:45:06">
</td>
</tr>
<tr>
<td>test_result</td>
<td>
<input disabled title="该字段不可更改" name="test_result" type="text" value="1">
</td>
</tr>
<tr>
<td>dev_id</td>
<td>
<input name="dev_id" type="text" value="2022021701000000000041">
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">
<input type="submit">
</td>
</tr>
</form>
</tbody>
</table>