由于某种原因,我的数据没有被填充到表中。无法在jQuery数据表中填充数据
我有一个JSON数据,我只想填充数据表。
有人可以帮助我,让我知道我错过了哪一个简单的步骤?
我有版本1.9.4。
<table id="example">
<thead>
<tr><th>name</th>
<th>position</th>
<th>salary</th>
<th>start_date</th>
<th>office</th>
<th>extn</th>
</tr>
</thead>
<tbody></tbody>
</table>
$('#example').dataTable({
data: [
[
"Tiger Nixon",
"System Architect",
"$3,120",
"2011/04/25",
"Edinburgh",
"5421"
],
[
"Garrett Winters",
"Director",
"5300",
"2011/07/25",
"Edinburgh",
"8422"
]
]
});