【问题标题】:how to get nested array data in jquery datatables如何在jquery数据表中获取嵌套数组数据
【发布时间】:2017-09-06 09:00:47
【问题描述】:

我有以下 JSON 数据:

{
"00100": {
    "claim_id": "21",
    "reference_no": "00100",
    "distributor_name": "Standard Match",
    "group_name": "A",
    "month": "Jun2017",
    "grand_total": "268.532",
    "details": [
        {
            "claim_id": "65",
            "product_name": "Lucky Match Type 1",
            "price": "102.00",
            "quantity": "02",
            "net_amount": "179.52"
        },
        {
            "claim_id": "66",
            "product_name": "Lucky Match Type 2",
            "price": "101.15",
            "quantity": "01",
            "net_amount": "89.012"
        }
    ]
}
}

我想在 Jquery Datatables 中获取这些数据,但我想如下图所示:

【问题讨论】:

标签: javascript jquery arrays json datatables


【解决方案1】:

我猜你不能,因为 jquery 数据表不能与表内的表一起使用。 对不起,如果我错了。

请仔细阅读以供进一步参考 https://datatables.net/blog/2011-06-19

也许你可以。

【讨论】:

    猜你喜欢
    • 2019-09-10
    • 1970-01-01
    • 1970-01-01
    • 2022-09-24
    • 2018-10-15
    • 2020-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多