且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

dataTable fn更新带有新值的行

更新时间:2023-12-06 15:28:16

请在这里查看文档 http://datatables.net/api

您的问题尚未完成,因为您需要指定要修改的列(td),但是这是我会尝试的(假设你想更新第二列)。

Your question is not complete, as you need to specify what column(td) you want to modify, but here's what I would try (assuming you want to update the second column).

$('#example')。dataTable()。fnUpdate ('Zebra',$('tr#3692')[0],1);

第二个参数将是行,而第三个是列。

The second parameter will be the row, and the third is the column.

请注意,我传递了一个字符串。

Note that I passed in a string.