如何使用jQuery迭代数据表中的列?

时间:2018-12-27 04:50:35

标签: php jquery datatables

我在列内进行了for循环,但这给了我一个错误。因此,我想知道如何遍历数据表中的列。

$(document).ready(function () {
    $('#example').DataTable({
        "processing": true,
        "ajax": "data/objects_deep.txt",
        "columns": [
            { "data": "name" },
            { "data": "hr.position" },
            { "data": "contact.0" },
            { "data": "contact.1" },
            { "data": "hr.start_date" },
            { "data": "hr.salary" }
        ]
    });
});

0 个答案:

没有答案