我使用这个code在datatables中删除一行。
$(".deleteRow").click(function() {
var row = $(this).closest("tr");
var nRow = row[0];
table_reach_condition_appoint_datatable.dataTable().fnDeleteRow(nRow);
});这段代码是js中关于delete row with datatables的核心代码。
我已经在我的html中导入了相关的js。
当我点击要删除的链接时,您可以看到图片:

没有效果,哪里错了?
发布于 2018-08-02 17:27:02
试试这个
table.row( $(this).parents('tr')) .remove().draw();或
table.row($(this).closest("tr")) .remove().draw();https://stackoverflow.com/questions/51649682
复制相似问题