【发布时间】:2018-10-08 09:06:29
【问题描述】:
我最近在一个页面中插入了tabledit,我跟随了几个例子但是所有的插件都不发布,不发布任何东西都是空的,我不知道如何使帖子工作你可以帮我吗?
简单脚本:
<table class='table'>
<thead>
<tr>
<th>Id</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Doe</td>
<td>Doe</td>
<td>john@example.com</td>
</tr>
</tbody>
</table>
<script>
$('.table').Tabledit({
url: 'index.php',
columns: {
identifier: [0, 'id'],
editable: [
[1, 'col1'],
[2, 'col2'],
[3, 'col3']
]
}
});
</script>
一切都很简单,我收到按钮但要保存和删除 ajax 中的帖子但没有没有表单数据的字段,我该怎么办?
【问题讨论】:
标签: javascript bootstrap-4 tabledit