从DataTable表更新数据
问题描述:
我无法正确更新我的表(datatable)。从DataTable表更新数据
PHP代码:
function test(){
echo '<tr><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td></tr>';
}
JavaScript代码(test.php的):
$.ajax({
type: "POST",
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
data: "refresh="+escape(refresh),
url: "test.php",
success: function(msg){
$("#conf-security-filter-table-"+list).dataTable().fnClearTable();
$("#conf-security-filter-table-"+list).dataTable().fnAddData(msg);
$("#conf-security-filter-table-"+list).dataTable().fnDraw();
}
})
与此码表
目前已经更新,但认为 “味精” 作为一个数组:
col1 | col2 | col3 | col4 | col5 | col6
< | t | r | >
有没有办法利用这个数组?
我使用破坏表后前插绕过我的问题的一些清晰的概念。 因此,我有义务重新定义表格属性。 也有缺点,我已经设置了刷新后所有小的列的宽度。 – user3185306