在Laravel test.blade.php上,我得到了这个包含数据的表格,可编辑的数据。用户看到该表,添加一些值到可编辑的td.How我可以解析该表与按钮onclick或代码到sql表PHP Jquery到php转换不起作用(转换数据到数组在查询中,并尝试获取数组到php变量),尝试简单的database.Tried没有工作。
<table id="examplecopy10" class="table table-striped">
<thead>
<tr>
<th>id</th>
<th>code</th>
<th>stuff</th>
<th>editable stuff</th>
<th>editable stufftwo</th>
</tr>
</thead>
<tbody>
@foreach ($a as $b)
<tr>
<td> {{ $b->id }} </td>
<td> {{ $b->code }} </td>
<td> {{ $b->stuff }} </td>
<td contenteditable="true"></td>
<td contenteditable="true"></td>
</tr>
@endforeach
</tbody>
</table>发布于 2019-04-25 21:35:34
我认为你应该使用一些Javascript框架来做到这一点。Vue js是最好的想法,Laravel支持Vue js,所以你可以很容易地使用它。你可以用Laravel和Vue js做任何事情。
https://stackoverflow.com/questions/55849175
复制相似问题