我正在使用 Jquery 数据表。对服务器进行 ajax 调用以获取包含数据的 json 数组:
[{"ticks":635020621354830000,"created":"20/04/13 13:42","action":"1","reference":"1444","fee":"0.6"},{"ticks":635023360450070000,"created":"23/04/13 17:47","action":"0","reference":"1503","fee":"0.6"},{"ticks":635023360461470000,"created":"23/04/13 17:47","action":"0","reference":"1505","fee":"0.6"}]
然后我用javascript构建一个表并调用 $('#mytable').dataTable({...options}); 我想显示第一列“创建的”数据,但要按“记号”对其进行排序。我该怎么做 ?原因是 json 数组中有许多条目,“created”字段在“dd/MM/yy hh:mm”格式中是相同的值(我不想显示毫秒)并且刻度不同.