足部 - 一个单元格中的两个值

时间:2017-05-16 13:52:22

标签: javascript jquery cell footable

我使用的是Footable表,但我的值有问题。我需要在一个单元格中显示两个值。

但我不能添加两个值。 我使用Ajax加载数据

jQuery(function($){
    $('.table').footable({
        "columns": [
                    { "name": "PartID", "title":"PartID", "visible":false },
                    {"formatter": function(value){
                        return //I'm thinking this is where the code would go to join the next 3 columns? in the format ##.###.##
                    }},
                    { "name": "PartCategory", "title": "PC" },
                    { "name": "PartNumber1", "title": "PN1" },
                    { "name": "PartNumber2", "title": "PN2",  },
}
                ],
        "rows": $.get('rows.json')
    });
});

PartNumber1和PartNumber2必须在一个单元格上,但是如何?

Footable Plugin Footable Ajax table

0 个答案:

没有答案