我有一个包含来自远程源的数据的引导表,但我找不到如何将数据添加到 . 这是我的源数据:
$ajax[] = array(
"qta" => $row['qta'],
"name" => $row['name'],
"description" => $row['description']
);
但我想拥有它:
$ajax[] = array(
"id" => $row['id'], //123
"qta" => $row['qta'],
"name" => $row['name'],
"description" => $row['description']
);
为了让我的表格行像:
<tr data-pk="123">
<td>...qta...</td>
<td>...name...</td>
<td>...description...</td>
</tr>
我怎么能做到这一点?也许一些responseHandler?我对 BS Table 很陌生。