2017-04-25 54 views
0

我想从客户端站点的数据表格中编号格式。 我的代码如下:如何数字格式数据表?

$('#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

https://datatables.net/reference/option/formatNumber 通过这个环节去。 –

回答

0

我找到了解决办法。它的工作..

aoColumns:[ 
{ "title":"Name","className":"dt-left" }, 
{ "title":"Amount","className":"dt-right", 
    "render": $.fn.dataTable.render.number(',', '.', 0, '') 
} 
] 
相关问题