【发布时间】:2012-05-24 18:56:16
【问题描述】:
可能重复:
using jquery datatable plugin, does fnAddAdd() add rows to the top or bottom of a html tabld
我正在尝试在我的应用程序中使用数据表并查看动态添加行的示例。它有效但很奇怪。它在我现有的行上方添加行。我该如何解决这个问题?
事实上,请看这个演示页面:
http://datatables.net/examples/api/add_row.html
然后单击“单击以添加新行”。你会看到 1.1, 1.2, 1.3, 1.4 被添加到 allan, allan, allan, allan 行上方。
我如何告诉数据表将该行添加到艾伦下方而不是上方。
【问题讨论】:
-
@Alexis:它不是重复的。该解决方案对我不起作用,所以我再次发布。如果我将 false 作为第二个参数传递,则不会添加行本身。
标签: javascript jquery datatables