嵌套对象数据(数组),该例子的数据模型如下:
{ "name": [ "Nixon", "Tiger" ], "hr": [ "System Architect", "$3,120", "2011/04/25" ], "office": "Edinburgh", "extn": "5421" }

NamePositionOfficeExtn.Start dateSalary
NamePositionOfficeExtn.Start dateSalary
Acosta, JenniferJunior Javascript DeveloperEdinburgh34312013/02/01$75,650
Alexander, JonasDeveloperSan Francisco81962010/07/14$86,500
Baldwin, SergeData CoordinatorSingapore83522012/04/09$138,575
Bartlett, PrescottTechnical AuthorLondon36062011/05/07$145,000
Berry, YuriChief Marketing Officer (CMO)New York61542009/06/25$675,000
Bradshaw, JacksonDirectorNew York10422008/09/26$645,750
Bruce, MichaelJavascript DeveloperSingapore53842011/06/27$183,000
Burks, SukiDeveloperLondon68322009/10/22$114,500
Butler, HermioneRegional DirectorLondon10162011/03/21$356,250
Butler, UnityMarketing DesignerSan Francisco53842009/12/09$85,675
Showing 1 to 10 of 57 entries
1
2
3
4
5
6
7
8
9
10
11
12
13
$(document).ready(function() {
    $('#example').dataTable( {
        "ajax": "data/objects_subarrays.txt",
        "columns": [
            { "data": "name[, ]" },
            { "data": "hr.0" },
            { "data": "office" },
            { "data": "extn" },
            { "data": "hr.2" },
            { "data": "hr.1" }
        ]
    } );
} );
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<table id="example" class="display" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>Name</th>
                <th>Position</th>
                <th>Office</th>
                <th>Extn.</th>
                <th>Start date</th>
                <th>Salary</th>
            </tr>
        </thead>
 
        <tfoot>
            <tr>
                <th>Name</th>
                <th>Position</th>
                <th>Office</th>
                <th>Extn.</th>
                <th>Start date</th>
                <th>Salary</th>
            </tr>
        </tfoot>
    </table>

http://datatables.net/examples/ajax/objects_subarrays.html

Translation from DataTables.net, with permission