我想在客户端站点的数据表中对数字格式进行编号。 我的代码如下:
$('#mytableid').DataTable( {
bDestroy: true,
bPaginate : false,
bInfo : false,
searching: gTableSearchEnable,
aoColumns:[{"title":"Name","className":"dt-left"},{"title":"Amount","className":"dt-right"}],
data: [["Rubel","1260"],["Nazim","2415"]]
} );
答案 0 :(得分:0)
我找到了解决方案。它正在工作..
aoColumns:[
{ "title":"Name","className":"dt-left" },
{ "title":"Amount","className":"dt-right",
"render": $.fn.dataTable.render.number(',', '.', 0, '')
}
]