【发布时间】:2016-01-09 15:46:17
【问题描述】:
我下载了 jQuery tableeditor 但我不能使用。 我在页面中添加了 JS 文件:
<script src="../assets/jquery-tabledit-1.2.3/jquery.tabledit.js"></script>
<script src="../assets/jquery-tabledit-1.2.3/jquery.tabledit.min.js"></script>
<script>
$('#sales_table').Tabledit({
url: 'example.php',
editButton: false,
deleteButton: false,
hideIdentifier: true,
columns: {
identifier: [0, 'id'],
editable: [[2, 'firstname'], [3, 'lastname']]
}
});
</script>
这是我的桌子:
<table id="sales_table" border="1">
<tr>
<td id="firstname" name="firstname">a</td>
<td>a</td>
</tr>
</table>
但是什么也没发生,并且无法编辑表格。 任何帮助表示赞赏。
【问题讨论】:
-
检查浏览器的开发者控制台并提供任何错误(如果有)可能会有所帮助。
标签: php jquery jquery-plugins